Skip to content

MovementType

Package: com.hypixel.hytale.protocol

public enum MovementType

Enum with 13 constants used in the protocol serialization layer.

ConstantOrdinalDescription
None0No movement state.
Idle1Standing still.
Crouching2Crouching/sneaking.
Walking3Walking at normal speed.
Running4Running.
Sprinting5Sprinting at maximum speed.
Climbing6Climbing a surface.
Swimming7Swimming in fluid.
Flying8Flying through the air.
Sliding9Sliding on a surface.
Rolling10Rolling.
Mounting11Riding a mount at normal speed.
SprintMounting12Riding a mount at sprint speed.
public int getValue()

Returns the integer wire value for this MovementType constant.

public static MovementType fromValue(int value)

Returns the MovementType constant for the given wire value. Throws ProtocolException if the value is out of range.

Serialized as a single byte (012). The static VALUES array is used for O(1) lookup by ordinal.

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