Skip to content

BlockNeighbor

Package: com.hypixel.hytale.protocol

public enum BlockNeighbor

Identifies a neighboring block position relative to a center block. Covers all 26 positions in a 3x3x3 cube excluding center.

ConstantOrdinalDescription
Up0
Down1
North2
East3
South4
West5
UpNorth6
UpSouth7
UpEast8
UpWest9
DownNorth10
DownSouth11
DownEast12
DownWest13
NorthEast14
SouthEast15
SouthWest16
NorthWest17
UpNorthEast18
UpSouthEast19
UpSouthWest20
UpNorthWest21
DownNorthEast22
DownSouthEast23
DownSouthWest24
DownNorthWest25
public int getValue()

Returns the integer wire value for this BlockNeighbor constant.

public static BlockNeighbor fromValue(int value)

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

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