RandomRotation
Package: com.hypixel.hytale.protocol
public enum RandomRotationEnum with 5 constants used in the protocol serialization layer.
Constants
Section titled “Constants”| Constant | Ordinal | Description |
|---|---|---|
None | 0 | No random rotation. |
YawPitchRollStep1 | 1 | Random yaw, pitch, and roll in 1-degree steps. |
YawStep1 | 2 | Random yaw in 1-degree steps. |
YawStep1XZ | 3 | Random yaw in 1-degree steps on XZ plane. |
YawStep90 | 4 | Random yaw in 90-degree steps. |
Methods
Section titled “Methods”public int getValue()Returns the integer wire value for this RandomRotation constant.
public static RandomRotation fromValue(int value)Returns the RandomRotation constant for the given wire value. Throws ProtocolException if the value is out of range.
Serialization
Section titled “Serialization”Serialized as a single byte (0—4). 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.