Interface ColumnBlockPosition
A block position, which does not have a y value.
-
Method Summary
Modifier and TypeMethodDescriptionint
blockX()
Gets the X-coordinate of the block position.int
blockZ()
Gets the Z-coordinate of the block position.default BlockPosition
toPosition
(int y) Converts this column-based position into a full 3DBlockPosition
by supplying a Y-coordinate.
-
Method Details
-
blockX
int blockX()Gets the X-coordinate of the block position.- Returns:
- the block's X-coordinate
-
blockZ
int blockZ()Gets the Z-coordinate of the block position.- Returns:
- the block's Z-coordinate
-
toPosition
Converts this column-based position into a full 3DBlockPosition
by supplying a Y-coordinate.- Parameters:
y
- the Y-coordinate to include in the new position- Returns:
- a
BlockPosition
representing the full 3D position
-