Skip to content

MovementDirection

Package: com.hypixel.hytale.protocol

public enum MovementDirection

Enum with 9 constants used in the protocol serialization layer.

ConstantOrdinalDescription
None0No movement direction.
Forward1Forward movement.
Back2Backward movement.
Left3Left strafe.
Right4Right strafe.
ForwardLeft5Diagonal forward-left.
ForwardRight6Diagonal forward-right.
BackLeft7Diagonal backward-left.
BackRight8Diagonal backward-right.
public int getValue()

Returns the integer wire value for this MovementDirection constant.

public static MovementDirection fromValue(int value)

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

Serialized as a single byte (08). 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.