Skip to content

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.

DependencyDirection
GenericVelocityInstructionSystemBEFORE
EntityModule.getVelocityModifyingSystemType()AFTER (via SystemTypeDependency)

Matches entities with NPCEntity and Velocity components.

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