Class SpawnBeaconSystems.SpawnJobTick
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.SpawnJobSystem<NPCBeaconSpawnJob,BeaconSpawnController>
com.hypixel.hytale.server.spawning.beacons.SpawnBeaconSystems.SpawnJobTick
- All Implemented Interfaces:
ISystem<EntityStore>,QuerySystem<EntityStore>,TickableSystem<EntityStore>
- Enclosing class:
SpawnBeaconSystems
public static class SpawnBeaconSystems.SpawnJobTick
extends SpawnJobSystem<NPCBeaconSpawnJob,BeaconSpawnController>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hypixel.hytale.server.spawning.controllers.SpawnJobSystem
SpawnJobSystem.ResultNested 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 Set<Dependency<EntityStore>> private static final com.hypixel.hytale.logger.HytaleLoggerprivate final ComponentType<EntityStore, Player> private final Query<EntityStore> private final ComponentType<EntityStore, TransformComponent> Fields inherited from interface com.hypixel.hytale.component.system.ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionSpawnJobTick(ComponentType<EntityStore, LegacySpawnBeaconEntity> componentType, ComponentType<EntityStore, InitialBeaconDelay> initialBeaconDelayComponentType) -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()booleanisParallel(int archetypeChunkSize, int taskCount) protected voidonEndProbing(BeaconSpawnController spawnController, NPCBeaconSpawnJob spawnJob, SpawnJobSystem.Result result, ComponentAccessor<EntityStore> componentAccessor) private voidonSpawn(Ref<EntityStore> npcReference, BeaconSpawnController spawnController, NPCBeaconSpawnJob spawnJob, Store<EntityStore> store) protected voidonStartRun(NPCBeaconSpawnJob spawnJob) protected booleanpickSpawnPosition(BeaconSpawnController spawnController, NPCBeaconSpawnJob spawnJob, CommandBuffer<EntityStore> commandBuffer) private static voidpostSpawn(NPCEntity entity, Ref<EntityStore> ref, int roleIndex, boolean spawnFrozen, Store<EntityStore> store) protected SpawnJobSystem.Resultspawn(World world, BeaconSpawnController spawnController, NPCBeaconSpawnJob spawnJob, CommandBuffer<EntityStore> commandBuffer) voidtick(float dt, int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) protected SpawnJobSystem.ResulttrySpawn(BeaconSpawnController spawnController, NPCBeaconSpawnJob spawnJob, CommandBuffer<EntityStore> commandBuffer) Methods inherited from class com.hypixel.hytale.server.spawning.controllers.SpawnJobSystem
endProbing, tickSpawnJobsMethods 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
-
LOGGER
private static final com.hypixel.hytale.logger.HytaleLogger LOGGER -
componentType
-
playerComponentType
-
transformComponentType
-
query
-
dependencies
-
-
Constructor Details
-
SpawnJobTick
public SpawnJobTick(ComponentType<EntityStore, LegacySpawnBeaconEntity> componentType, 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>
-
onStartRun
- Overrides:
onStartRunin classSpawnJobSystem<NPCBeaconSpawnJob,BeaconSpawnController>
-
onEndProbing
protected void onEndProbing(@Nonnull BeaconSpawnController spawnController, @Nonnull NPCBeaconSpawnJob spawnJob, SpawnJobSystem.Result result, @Nonnull ComponentAccessor<EntityStore> componentAccessor) - Specified by:
onEndProbingin classSpawnJobSystem<NPCBeaconSpawnJob,BeaconSpawnController>
-
pickSpawnPosition
protected boolean pickSpawnPosition(@Nonnull BeaconSpawnController spawnController, @Nonnull NPCBeaconSpawnJob spawnJob, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Specified by:
pickSpawnPositionin classSpawnJobSystem<NPCBeaconSpawnJob,BeaconSpawnController>
-
trySpawn
@Nonnull protected SpawnJobSystem.Result trySpawn(@Nonnull BeaconSpawnController spawnController, @Nonnull NPCBeaconSpawnJob spawnJob, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Specified by:
trySpawnin classSpawnJobSystem<NPCBeaconSpawnJob,BeaconSpawnController>
-
spawn
@Nonnull protected SpawnJobSystem.Result spawn(World world, @Nonnull BeaconSpawnController spawnController, @Nonnull NPCBeaconSpawnJob spawnJob, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Specified by:
spawnin classSpawnJobSystem<NPCBeaconSpawnJob,BeaconSpawnController>
-
onSpawn
private void onSpawn(@Nonnull Ref<EntityStore> npcReference, @Nonnull BeaconSpawnController spawnController, @Nonnull NPCBeaconSpawnJob spawnJob, @Nonnull Store<EntityStore> store) -
postSpawn
private static void postSpawn(@Nonnull NPCEntity entity, @Nonnull Ref<EntityStore> ref, int roleIndex, boolean spawnFrozen, @Nonnull Store<EntityStore> store)
-