SpawnReferenceSystems

public class SpawnReferenceSystems

Class SpawnReferenceSystems. Provides spawnreferencesystems functionality for the Hytale server.

java.lang.Object > SpawnReferenceSystems

Field Summary

spawnReferenceComponent

final SpawnMarkerReference spawnReferenceComponent

Field spawnReferenceComponent.

markerReference

final Ref markerReference

Field markerReference.

markerTypeComponent

final SpawnMarkerEntity markerTypeComponent

Field markerTypeComponent.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

worldGenIdComponent

final WorldGenId worldGenIdComponent

Field worldGenIdComponent.

worldGenId

final int worldGenId

Field worldGenId.

context

final HytaleLogger.Api context

Field context.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

uuid

final UUID uuid

Field uuid.

spawnMarkerRef

final Ref spawnMarkerRef

Field spawnMarkerRef.

spawnMarkerComponent

final SpawnMarkerEntity spawnMarkerComponent

Field spawnMarkerComponent.

spawnCount

final int spawnCount

Field spawnCount.

cachedMarker

final SpawnMarker cachedMarker

Field cachedMarker.

newReferences

final InvalidatablePersistentRef[] newReferences

Field newReferences.

npcReferences2

final InvalidatablePersistentRef[] npcReferences2

Field npcReferences2.

npcReferences

final InvalidatablePersistentRef[] npcReferences

Field npcReferences.

gameTimeRespawn

final Duration gameTimeRespawn

Field gameTimeRespawn.

storedFlock

final StoredFlock storedFlock

Field storedFlock.

legacySpawnBeaconComponent

final LegacySpawnBeaconEntity legacySpawnBeaconComponent

Field legacySpawnBeaconComponent.

spawnController

final BeaconSpawnController spawnController

Field spawnController.

spawnReference

final SpawnBeaconReference spawnReference

Field spawnReference.

spawnBeaconRef

final Ref spawnBeaconRef

Field spawnBeaconRef.

Method Detail

MarkerAddRemoveSystem

public public MarkerAddRemoveSystem (@Nonnull final ComponentType spawnReferenceComponentType, @Nonnull final ComponentType spawnMarkerEntityComponentType)

Method MarkerAddRemoveSystem.

Parameters:
@Nonnull final ComponentType spawnReferenceComponentType
@Nonnull final ComponentType spawnMarkerEntityComponentType

getQuery

public Query getQuery ()

Method getQuery.

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

WorldGenId

public new WorldGenId (worldGenId)

Method WorldGenId.

Parameters:
worldGenId worldGenId

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

BeaconAddRemoveSystem

public public BeaconAddRemoveSystem (@Nonnull final ComponentType spawnReferenceComponentType, @Nonnull final ComponentType legacySpawnBeaconComponent)

Method BeaconAddRemoveSystem.

Parameters:
@Nonnull final ComponentType spawnReferenceComponentType
@Nonnull final ComponentType legacySpawnBeaconComponent

TickingSpawnMarkerSystem

public public TickingSpawnMarkerSystem (@Nonnull final ComponentType spawnReferenceComponentType, @Nonnull final ComponentType markerTypeComponentType)

Method TickingSpawnMarkerSystem.

Parameters:
@Nonnull final ComponentType spawnReferenceComponentType
@Nonnull final ComponentType markerTypeComponentType

getDependencies

public Set> getDependencies ()

Method getDependencies.

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 (npcComponent.getRole()

Method if.

Parameters:
npcComponent.getRole( npcComponent.getRole(

SystemDependency

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

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
NPCPreTickSystem.class NPCPreTickSystem.class

TickingSpawnBeaconSystem

public public TickingSpawnBeaconSystem (@Nonnull final ComponentType spawnReferenceComponentType)

Method TickingSpawnBeaconSystem.

Parameters:
@Nonnull final ComponentType spawnReferenceComponentType