Contents
Class SteeringSystem
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.SteeringSystem
- All Implemented Interfaces:
ISystem<EntityStore>, QuerySystem<EntityStore>, TickableSystem<EntityStore>
A steppable ticking system that handles computing and executing NPC movement
based on the steering returned by the behaviour computation.
-
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
ConstructorsConstructorDescriptionSteeringSystem(ComponentType<EntityStore, NPCEntity> npcEntityComponent) Default Constructor for aSteeringSysteminstance -
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
-
SteeringSystem
Default Constructor for aSteeringSysteminstance- Parameters:
npcEntityComponent- TheNPCEntitycomponent 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
-