public class SpawnMarkerBlockStateSystems
Class SpawnMarkerBlockStateSystems. Provides spawnmarkerblockstatesystems functionality for the Hytale server.
java.lang.Object > SpawnMarkerBlockStateSystems
Field Summary
data
final
StateData
data
Field data.
stateData
final
SpawnMarkerBlockState.Data
stateData
Field stateData.
marker
final
SpawnMarker
marker
Field marker.
pos
final
Vector3i
pos
Field pos.
offset
final
Vector3i
offset
Field offset.
spawnMarker
final
SpawnMarkerEntity
spawnMarker
Field spawnMarker.
holder
final
Holder
holder
Field holder.
markerPos
final
Vector3d
markerPos
Field markerPos.
uuidComponent
final
UUIDComponent
uuidComponent
Field uuidComponent.
model
final
Model
model
Field model.
markerRef
final
Ref
markerRef
Field markerRef.
persistentRef
final
PersistentRef
persistentRef
Field persistentRef.
state
final
SpawnMarkerBlockState
state
Field state.
markerReference
final
PersistentRef
markerReference
Field markerReference.
world
final
World
world
Field world.
entityStore
final
Store
entityStore
Field entityStore.
ref
final
Ref
ref
Field ref.
chunk
final
WorldChunk
chunk
Field chunk.
ref2
final
Ref
ref2
Field ref2.
Method Detail
createMarker
static
void
createMarker
(@Nonnull final Ref ref, @Nonnull final SpawnMarkerBlockState state, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method createMarker.
- Parameters:
@Nonnull final Refref@Nonnull final SpawnMarkerBlockStatestate@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
SpawnMarkerBlockReference
public
new
SpawnMarkerBlockReference
(state.getBlockPosition()
Method SpawnMarkerBlockReference.
- Parameters:
state.getBlockPosition(state.getBlockPosition(
Nameplate
public
new
Nameplate
(marker.getId()
Method Nameplate.
- Parameters:
marker.getId(marker.getId(
TransformComponent
public
new
TransformComponent
(markerPos, Vector3f.ZERO)
Method TransformComponent.
- Parameters:
markerPosmarkerPosVector3f.ZEROVector3f.ZERO
ModelComponent
public
new
ModelComponent
(model)
Method ModelComponent.
- Parameters:
modelmodel
PersistentModel
public
new
PersistentModel
(model.toReference()
Method PersistentModel.
- Parameters:
model.toReference(model.toReference(
onEntityAdded
public
void
onEntityAdded
(@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityAdded.
- Parameters:
@Nonnull final Refref@Nonnull final AddReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onEntityRemove
public
void
onEntityRemove
(@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityRemove.
- Parameters:
@Nonnull final Refref@Nonnull final RemoveReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
isParallel
public
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
tick
public
void
tick
(final float dt, final int index, @Nonnull final ArchetypeChunk archetypeChunk, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method tick.
- Parameters:
final floatdtfinal intindex@Nonnull final ArchetypeChunkarchetypeChunk@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
if
public
else
if
(state.tickMarkerLostTimeout(dt)
Method if.
- Parameters:
state.tickMarkerLostTimeout(dtstate.tickMarkerLostTimeout(dt
SpawnMarkerAddedFromExternal
Method SpawnMarkerAddedFromExternal.
- Parameters:
final ComponentTypecomponentType
SpawnMarkerTickHeartbeat
Method SpawnMarkerTickHeartbeat.
- Parameters:
final ComponentTypecomponentType