SteeringSystem
Package: com.hypixel.hytale.server.npc.systems
public class SteeringSystem extends SteppableTickingSystemApplies the computed steering vectors (body and head) to the NPC’s active motion controller. Runs after AvoidanceSystem and after KnockbackSystems.ApplyKnockback, and before TransformSystems.EntityTrackerUpdate.
Execution Order
Section titled “Execution Order”| Dependency | Direction |
|---|---|
AvoidanceSystem | AFTER |
KnockbackSystems.ApplyKnockback | AFTER |
TransformSystems.EntityTrackerUpdate | BEFORE |
Constructor
Section titled “Constructor”public SteeringSystem(@Nonnull ComponentType<EntityStore, NPCEntity> npcEntityComponent)Matches entities with NPCEntity and TransformComponent.
Tick Logic
Section titled “Tick Logic”@Overridepublic void steppedTick( float dt, int index, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer)Delegates to role.getActiveMotionController().steer(ref, role, bodySteering, headSteering, dt, commandBuffer).
When debug motion steering is enabled, logs detailed velocity and heading information. On IllegalStateException or IllegalArgumentException, removes the entity.
Parallelism
Section titled “Parallelism”Returns false — this system does not run in parallel.
Related Types
Section titled “Related Types”- AvoidanceSystem — computes avoidance/separation forces before steering
- RoleSystems —
PostBehaviourSupportTickSystemruns after steering
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.