public class SpawnReferenceSystems
Class SpawnReferenceSystems. Provides spawnreferencesystems functionality for the Hytale server.
java.lang.Object > SpawnReferenceSystems
Field Summary
spawnReferenceComponent
Field spawnReferenceComponent.
markerReference
Field markerReference.
markerTypeComponent
Field markerTypeComponent.
npcComponent
Field npcComponent.
worldGenIdComponent
Field worldGenIdComponent.
worldGenId
Field worldGenId.
context
Field context.
uuidComponent
Field uuidComponent.
uuid
Field uuid.
spawnMarkerRef
Field spawnMarkerRef.
spawnMarkerComponent
Field spawnMarkerComponent.
spawnCount
Field spawnCount.
cachedMarker
Field cachedMarker.
newReferences
Field newReferences.
npcReferences2
Field npcReferences2.
npcReferences
Field npcReferences.
gameTimeRespawn
Field gameTimeRespawn.
storedFlock
Field storedFlock.
legacySpawnBeaconComponent
Field legacySpawnBeaconComponent.
spawnController
Field spawnController.
spawnReference
Field spawnReference.
spawnBeaconRef
Field spawnBeaconRef.
Method Detail
MarkerAddRemoveSystem
public
MarkerAddRemoveSystem
(@Nonnull final ComponentType spawnReferenceComponentType, @Nonnull final ComponentType spawnMarkerEntityComponentType)
Method MarkerAddRemoveSystem.
- Parameters:
@Nonnull final ComponentTypespawnReferenceComponentType@Nonnull final ComponentTypespawnMarkerEntityComponentType
onEntityAdded
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
WorldGenId
new
WorldGenId
(worldGenId)
Method WorldGenId.
- Parameters:
worldGenIdworldGenId
onEntityRemove
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
BeaconAddRemoveSystem
public
BeaconAddRemoveSystem
(@Nonnull final ComponentType spawnReferenceComponentType, @Nonnull final ComponentType legacySpawnBeaconComponent)
Method BeaconAddRemoveSystem.
- Parameters:
@Nonnull final ComponentTypespawnReferenceComponentType@Nonnull final ComponentTypelegacySpawnBeaconComponent
TickingSpawnMarkerSystem
public
TickingSpawnMarkerSystem
(@Nonnull final ComponentType spawnReferenceComponentType, @Nonnull final ComponentType markerTypeComponentType)
Method TickingSpawnMarkerSystem.
- Parameters:
@Nonnull final ComponentTypespawnReferenceComponentType@Nonnull final ComponentTypemarkerTypeComponentType
getDependencies
Set>
getDependencies
()
Method getDependencies.
isParallel
boolean
isParallel
(final int archetypeChunkSize, final int taskCount)
Method isParallel.
- Parameters:
final intarchetypeChunkSizefinal inttaskCount
tick
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
else
if
(npcComponent.getRole()
Method if.
- Parameters:
npcComponent.getRole(npcComponent.getRole(
SystemDependency
new
SystemDependency
(Order.AFTER, NPCPreTickSystem.class)
Method SystemDependency.
- Parameters:
Order.AFTEROrder.AFTERNPCPreTickSystem.classNPCPreTickSystem.class
TickingSpawnBeaconSystem
Method TickingSpawnBeaconSystem.
- Parameters:
@Nonnull final ComponentTypespawnReferenceComponentType