Skip to content

ChunkPosCompat ​

com.jsmacrosce.jsmacros.util.ChunkPosCompat

Provides cross-version access to ChunkPos coordinates.

Methods ​

x ​

static x(ChunkPos pos): int#
Returns the supplied position's X coordinate in chunks, not blocks.

Parameters:

  • pos: non-null chunk position to read
Returns: X coordinate in chunks

z ​

static z(ChunkPos pos): int#
Returns the supplied position's Z coordinate in chunks, not blocks.

Parameters:

  • pos: non-null chunk position to read
Returns: Z coordinate in chunks