Interface ColumnBlockPosition
A block position, which does not have a y value.
-
Method Summary
Modifier and TypeMethodDescriptionintblockX()Gets the X-coordinate of the block position.intblockZ()Gets the Z-coordinate of the block position.default BlockPositiontoPosition(int y) Converts this column-based position into a full 3DBlockPositionby 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 3DBlockPositionby supplying a Y-coordinate.- Parameters:
y- the Y-coordinate to include in the new position- Returns:
- a
BlockPositionrepresenting the full 3D position
-