SpawnMarkerSystems

public class SpawnMarkerSystems

Class SpawnMarkerSystems. Provides spawnmarkersystems functionality for the Hytale server.

java.lang.Object > SpawnMarkerSystems

Field Summary

spawnMarker

final BsonDocument spawnMarker

Field spawnMarker.

modelReference

final Model.ModelReference modelReference

Field modelReference.

worldgenId

final int worldgenId

Field worldgenId.

marker

final SpawnMarkerEntity marker

Field marker.

entity

final SpawnMarkerEntity entity

Field entity.

context

final HytaleLogger.Api context

Field context.

transform

final TransformComponent transform

Field transform.

world

final World world

Field world.

cachedMarker

final SpawnMarker cachedMarker

Field cachedMarker.

storedFlock

final StoredFlock storedFlock

Field storedFlock.

results

final ObjectList> results

Field results.

hasPlayersInRange

final boolean hasPlayersInRange

Field hasPlayersInRange.

npcReferences

final InvalidatablePersistentRef[] npcReferences

Field npcReferences.

npcRef

final Ref npcRef

Field npcRef.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

isDead

final boolean isDead

Field isDead.

npcRef2

final Ref npcRef2

Field npcRef2.

npcComponent2

final NPCEntity npcComponent2

Field npcComponent2.

modelComponent

final ModelComponent modelComponent

Field modelComponent.

despawnAnimationTime

final double despawnAnimationTime

Field despawnAnimationTime.

refId

final PersistentRefCount refId

Field refId.

tempStorageList2

final ObjectList> tempStorageList2

Field tempStorageList2.

npcRef3

final Ref npcRef3

Field npcRef3.

spawnMarkerReference

final SpawnMarkerReference spawnMarkerReference

Field spawnMarkerReference.

tempStorageList3

final ObjectList> tempStorageList3

Field tempStorageList3.

position

final Vector3d position

Field position.

rotation

final Vector3f rotation

Field rotation.

npcReferences2

final InvalidatablePersistentRef[] npcReferences2

Field npcReferences2.

ref4

final Ref ref4

Field ref4.

npc

final NPCEntity npc

Field npc.

npcTransform

final TransformComponent npcTransform

Field npcTransform.

npcHeadRotation

final HeadRotation npcHeadRotation

Field npcHeadRotation.

reference3

final InvalidatablePersistentRef reference3

Field reference3.

refId2

final PersistentRefCount refId2

Field refId2.

ref2

final Ref ref2

Field ref2.

ref3

final Ref ref3

Field ref3.

worldTimeResource

final WorldTimeResource worldTimeResource

Field worldTimeResource.

Method Detail

LegacyEntityMigration

public public LegacyEntityMigration ()

Method LegacyEntityMigration.

onEntityAdd

public void onEntityAdd (@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)

Method onEntityAdd.

Parameters:
@Nonnull final Holder holder
@Nonnull final AddReason reason
@Nonnull final Store store

PersistentModel

public new PersistentModel (modelReference)

Method PersistentModel.

Parameters:
modelReference modelReference

Nameplate

public new Nameplate (Entity.DISPLAY_NAME.get(spawnMarker)

Method Nameplate.

Parameters:
Entity.DISPLAY_NAME.get(spawnMarker Entity.DISPLAY_NAME.get(spawnMarker

UUIDComponent

public new UUIDComponent (Entity.UUID.get(spawnMarker)

Method UUIDComponent.

Parameters:
Entity.UUID.get(spawnMarker Entity.UUID.get(spawnMarker

WorldGenId

public new WorldGenId (worldgenId)

Method WorldGenId.

Parameters:
worldgenId worldgenId

ExtraInfo

public new ExtraInfo (5)

Method ExtraInfo.

Parameters:
5 5

onEntityRemoved

public void onEntityRemoved (@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)

Method onEntityRemoved.

Parameters:
@Nonnull final Holder holder
@Nonnull final RemoveReason reason
@Nonnull final Store store

getQuery

public Query getQuery ()

Method getQuery.

getDependencies

public Set> getDependencies ()

Method getDependencies.

EnsureNetworkSendable

public public EnsureNetworkSendable ()

Method EnsureNetworkSendable.

NetworkId

public new NetworkId (store.getExternalData()

Method NetworkId.

Parameters:
store.getExternalData( store.getExternalData(

CacheMarker

public public CacheMarker (final ComponentType componentType)

Method CacheMarker.

Parameters:
final ComponentType componentType

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 Ref ref
@Nonnull final AddReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

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 Ref ref
@Nonnull final RemoveReason reason
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

EntityAdded

public public EntityAdded (final ComponentType componentType)

Method EntityAdded.

Parameters:
final ComponentType componentType

SystemDependency

public new SystemDependency (Order.AFTER, CacheMarker.class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
CacheMarker.class CacheMarker.class

EntityAddedFromExternal

public public EntityAddedFromExternal (final ComponentType componentType)

Method EntityAddedFromExternal.

Parameters:
final ComponentType componentType

StoredFlock

public new StoredFlock ()

Method StoredFlock.

getGroup

public SystemGroup getGroup ()

Method getGroup.

AddedFromWorldGen

public public AddedFromWorldGen ()

Method AddedFromWorldGen.

Ticking

public public Ticking (final ComponentType componentType, final ResourceType, EntityStore>> playerSpatialComponent)

Method Ticking.

Parameters:
final ComponentType componentType
final ResourceType, EntityStore>> playerSpatialComponent

isParallel

public boolean isParallel (final int archetypeChunkSize, final int taskCount)

Method isParallel.

Parameters:
final int archetypeChunkSize
final int taskCount

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 float dt
final int index
@Nonnull final ArchetypeChunk archetypeChunk
@Nonnull final Store store
@Nonnull final CommandBuffer commandBuffer

if

public else if (entity.getSpawnAfter()

Method if.

Parameters:
entity.getSpawnAfter( entity.getSpawnAfter(