NPCVelocityInstructionSystem
Package: com.hypixel.hytale.server.npc.systems
public class NPCVelocityInstructionSystem extends EntityTickingSystem<EntityStore>Processes velocity instructions from the physics system for NPC entities. Iterates over Velocity.Instruction entries and delegates to the role’s motion controller:
- Set instructions: calls
role.processSetVelocityInstruction(velocity, config) - Add instructions: calls
role.processAddVelocityInstruction(velocity, config)
After processing, all instructions are cleared from the velocity component. When DebugUtils.DISPLAY_FORCES is enabled, force debug visualizations are rendered.
Execution Order
Section titled “Execution Order”| Dependency | Direction |
|---|---|
GenericVelocityInstructionSystem | BEFORE |
EntityModule.getVelocityModifyingSystemType() | AFTER (via SystemTypeDependency) |
Matches entities with NPCEntity and Velocity components.
Related Types
Section titled “Related Types”- ComputeVelocitySystem — computes velocity from position deltas
- SteeringSystem — applies steering forces
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.