Skip to content

VariantRotation

Package: com.hypixel.hytale.protocol

public enum VariantRotation

Enum with 8 constants used in the protocol serialization layer.

ConstantOrdinalDescription
None0No variant rotation.
Wall1Wall-facing rotation variants.
UpDown2Up/down orientation variants.
Pipe3Single-axis pipe rotation.
DoublePipe4Dual-axis pipe rotation.
NESW5Four cardinal direction variants.
UpDownNESW6Six-direction variants (up, down, N, E, S, W).
All7All rotation variants.
public int getValue()

Returns the integer wire value for this VariantRotation constant.

public static VariantRotation fromValue(int value)

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

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