MovementStatesSystem
Package: com.hypixel.hytale.server.npc.systems
public class MovementStatesSystem extends SteppableTickingSystemUpdates NPC movement state flags based on the computed velocity. Runs after ComputeVelocitySystem. Delegates to Role.updateMovementState() which sets flags like walking, running, idle, etc. based on the velocity vector and the movement states component.
Entities with the role name "Empty_Role" are skipped. Exceptions during movement state updates are logged and do not crash the system.
Execution Order
Section titled “Execution Order”| Dependency | Direction |
|---|---|
ComputeVelocitySystem | AFTER |
Constructor
Section titled “Constructor”public MovementStatesSystem( @Nonnull ComponentType<EntityStore, NPCEntity> npcComponentType, @Nonnull ComponentType<EntityStore, Velocity> velocityComponentType, @Nonnull ComponentType<EntityStore, MovementStatesComponent> movementStatesComponentType)Matches entities with NPCEntity, Velocity, and MovementStatesComponent.
Parallelism
Section titled “Parallelism”Returns false — this system does not run in parallel.
Related Types
Section titled “Related Types”- ComputeVelocitySystem — computes velocity consumed by this system
- SteppableTickingSystem — base class
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.