Class SpawnBeaconSystems.ControllerTick
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.tick.TickingSystem<EntityStore>
com.hypixel.hytale.component.system.tick.ArchetypeTickingSystem<EntityStore>
com.hypixel.hytale.component.system.tick.EntityTickingSystem<EntityStore>
com.hypixel.hytale.server.spawning.controllers.SpawnControllerSystem<NPCBeaconSpawnJob,BeaconSpawnController>
com.hypixel.hytale.server.spawning.beacons.SpawnBeaconSystems.ControllerTick
- All Implemented Interfaces:
ISystem<EntityStore>,QuerySystem<EntityStore>,TickableSystem<EntityStore>
- Enclosing class:
SpawnBeaconSystems
public static class SpawnBeaconSystems.ControllerTick
extends SpawnControllerSystem<NPCBeaconSpawnJob,BeaconSpawnController>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.component.system.tick.EntityTickingSystem
EntityTickingSystem.SystemTaskData<ECS_TYPE> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ComponentType<EntityStore, LegacySpawnBeaconEntity> private final ComponentType<EntityStore, DeathComponent> private final Set<Dependency<EntityStore>> private final ComponentType<EntityStore, com.hypixel.hytale.server.spawning.util.FloodFillPositionSelector> private final ComponentType<EntityStore, NPCEntity> private final ComponentType<EntityStore, PlayerRef> private final ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> private final Query<EntityStore> private static final ThreadLocal<List<NPCEntity>> private final ComponentType<EntityStore, TransformComponent> private final ComponentType<EntityStore, UUIDComponent> Fields inherited from interface com.hypixel.hytale.component.system.ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionControllerTick(ComponentType<EntityStore, LegacySpawnBeaconEntity> componentType, ComponentType<EntityStore, com.hypixel.hytale.server.spawning.util.FloodFillPositionSelector> floodFillPositionSelectorComponentType, ComponentType<EntityStore, InitialBeaconDelay> initialBeaconDelayComponentType) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateRandomSpawnJobs(BeaconSpawnController spawnController, ComponentAccessor<EntityStore> componentAccessor) getQuery()booleanisParallel(int archetypeChunkSize, int taskCount) private static booleanisReadyToRespawn(LegacySpawnBeaconEntity spawnBeacon, WorldTimeResource timeManager) protected voidprepareSpawnJobGeneration(BeaconSpawnController spawnController, ComponentAccessor<EntityStore> componentAccessor) voidtick(float dt, int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) Methods inherited from class com.hypixel.hytale.server.spawning.controllers.SpawnControllerSystem
tickControllerMethods inherited from class com.hypixel.hytale.component.system.tick.EntityTickingSystem
doTick, maybeUseParallel, tick, useParallelMethods inherited from class com.hypixel.hytale.component.system.tick.ArchetypeTickingSystem
isExplicitQuery, test, tickMethods inherited from class com.hypixel.hytale.component.system.System
getComponentRegistrations, getResourceRegistrations, registerComponent, registerComponent, registerComponent, registerResource, registerResourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.system.ISystem
getGroup, onSystemRegistered, onSystemUnregistered
-
Field Details
-
THREAD_LOCAL_VALIDATED_ENTITIES
-
componentType
-
floodFillPositionSelectorComponentType
private final ComponentType<EntityStore,com.hypixel.hytale.server.spawning.util.FloodFillPositionSelector> floodFillPositionSelectorComponentType -
playerRefComponentType
-
npcComponentType
-
transformComponentType
-
deathComponentComponentType
-
uuidComponentType
-
playerSpatialResource
private final ResourceType<EntityStore,SpatialResource<Ref<EntityStore>, playerSpatialResourceEntityStore>> -
query
-
dependencies
-
-
Constructor Details
-
ControllerTick
public ControllerTick(ComponentType<EntityStore, LegacySpawnBeaconEntity> componentType, ComponentType<EntityStore, com.hypixel.hytale.server.spawning.util.FloodFillPositionSelector> floodFillPositionSelectorComponentType, ComponentType<EntityStore, InitialBeaconDelay> initialBeaconDelayComponentType)
-
-
Method Details
-
getDependencies
-
getQuery
-
isParallel
public boolean isParallel(int archetypeChunkSize, int taskCount) - Overrides:
isParallelin classEntityTickingSystem<EntityStore>
-
tick
public void tick(float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Specified by:
tickin classEntityTickingSystem<EntityStore>
-
isReadyToRespawn
private static boolean isReadyToRespawn(LegacySpawnBeaconEntity spawnBeacon, WorldTimeResource timeManager) -
prepareSpawnJobGeneration
protected void prepareSpawnJobGeneration(@Nonnull BeaconSpawnController spawnController, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Specified by:
prepareSpawnJobGenerationin classSpawnControllerSystem<NPCBeaconSpawnJob,BeaconSpawnController>
-
createRandomSpawnJobs
protected void createRandomSpawnJobs(@Nonnull BeaconSpawnController spawnController, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Overrides:
createRandomSpawnJobsin classSpawnControllerSystem<NPCBeaconSpawnJob,BeaconSpawnController>
-