Skip to content

MouseButtonState

Package: com.hypixel.hytale.protocol

public enum MouseButtonState

Enum with 2 constants used in the protocol serialization layer.

ConstantOrdinalDescription
Pressed0The button is pressed down.
Released1The button has been released.
public int getValue()

Returns the integer wire value for this MouseButtonState constant.

public static MouseButtonState fromValue(int value)

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

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