Skip to content

MovementStatesSystem

Package: com.hypixel.hytale.server.npc.systems

public class MovementStatesSystem extends SteppableTickingSystem

Updates 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.

DependencyDirection
ComputeVelocitySystemAFTER
public MovementStatesSystem(
@Nonnull ComponentType<EntityStore, NPCEntity> npcComponentType,
@Nonnull ComponentType<EntityStore, Velocity> velocityComponentType,
@Nonnull ComponentType<EntityStore, MovementStatesComponent> movementStatesComponentType
)

Matches entities with NPCEntity, Velocity, and MovementStatesComponent.

Returns false — this system does not run in parallel.

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.