Contents
Class PositionCacheSystems.UpdateSystem
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.npc.systems.SteppableTickingSystem
com.hypixel.hytale.server.npc.systems.PositionCacheSystems.UpdateSystem
- All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>, TickableSystem<EntityStore>
- Enclosing class:
PositionCacheSystems
A steppable ticking system that handles updating the position cache of an NPC entity
-
Nested Class Summary
Nested classes/interfaces inherited from class EntityTickingSystem
EntityTickingSystem.SystemTaskData<ECS_TYPE> -
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionUpdateSystem(ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> npcSpatialResource) Default Constructor for anPositionCacheSystems.UpdateSysteminstance. -
Method Summary
Modifier and TypeMethodDescriptiongetQuery()booleanisParallel(int archetypeChunkSize, int taskCount) voidsteppedTick(float dt, int index, ArchetypeChunk<EntityStore> archetypeChunk, Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer) The abstract tick method utilised bySteppableTickingSystemclassesMethods inherited from class SteppableTickingSystem
tickMethods inherited from class EntityTickingSystem
doTick, tickMethods inherited from class ArchetypeTickingSystem
isExplicitQuery, test, tickMethods inherited from class System
getComponentRegistrations, getResourceRegistrations, registerResource, registerResourceMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISystem
getGroup, onSystemRegistered, onSystemUnregisteredMethods inherited from interface QuerySystem
getHierarchyScope
-
Constructor Details
-
UpdateSystem
public UpdateSystem(@Nonnull ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> npcSpatialResource) Default Constructor for anPositionCacheSystems.UpdateSysteminstance.- Parameters:
npcSpatialResource- TheSpatialResourceresource type
-
-
Method Details
-
getDependencies
-
isParallel
public boolean isParallel(int archetypeChunkSize, int taskCount) - Overrides:
isParallelin classEntityTickingSystem<EntityStore>- Returns:
trueif parallel ticking is enabled.- See Also:
-
getQuery
-
steppedTick
public void steppedTick(float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer) Description copied from class:SteppableTickingSystemThe abstract tick method utilised bySteppableTickingSystemclasses- Specified by:
steppedTickin classSteppableTickingSystem- Parameters:
dt- The delta time of the current tickindex- The index of the entityarchetypeChunk- The archetype chunk for the systemstore- The entity store for component accesscommandBuffer- The entity store command buffer
-