MountSystems.HandleMountInput
Package: com.hypixel.hytale.builtin.mounts
public static class HandleMountInput extends EntityTickingSystem<EntityStore>Ticking system that processes player movement input while the player is mounted. Runs before PlayerSystems.ProcessPlayerInput.
Matches entities with both MountedComponent and PlayerInput.
Behavior
Section titled “Behavior”Each tick, iterates the player’s PlayerInput.getMovementUpdateQueue() and processes each input update:
- Block mount + movement input: If the mount duration is at least 600 ms, removes the
MountedComponentto dismount. Movement inputs within the first 600 ms are ignored to prevent accidental immediate dismount. - SetRiderMovementStates: Updates the rider’s
MovementStatesComponent. - RelativeMovement: Applies to both the rider and the mount target’s
TransformComponentposition. - AbsoluteMovement: Applies to both the rider and the mount target’s
TransformComponentposition. - SetMovementStates: Updates the mount target’s
MovementStatesComponent. - SetBody: Applies body rotation to both the rider and the mount target’s
TransformComponentrotation. - SetHead: Applies head rotation to the rider only.
- WishMovement: Ignored while mounted.
The queue is cleared after processing.
Dependencies
Section titled “Dependencies”Ordered BEFORE PlayerSystems.ProcessPlayerInput.
Related Types
Section titled “Related Types”- MountSystems — enclosing class
- MountSystems.PlayerMount — sets mount IDs on player input
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.