Skip to content

BlockFace

Package: com.hypixel.hytale.protocol

public enum BlockFace

Identifies a face of a block in 3D space.

ConstantOrdinalDescription
None0No face specified.
Up1Top face (+Y).
Down2Bottom face (-Y).
North3North face (-Z).
South4South face (+Z).
East5East face (+X).
West6West face (-X).
public int getValue()

Returns the integer wire value for this BlockFace constant.

public static BlockFace fromValue(int value)

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

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