Interface ColumnBlockPosition


@Experimental @NullMarked public interface ColumnBlockPosition
A block position, which does not have a y value.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the X-coordinate of the block position.
    int
    Gets the Z-coordinate of the block position.
    toPosition(int y)
    Converts this column-based position into a full 3D BlockPosition 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

      default BlockPosition toPosition(int y)
      Converts this column-based position into a full 3D BlockPosition by supplying a Y-coordinate.
      Parameters:
      y - the Y-coordinate to include in the new position
      Returns:
      a BlockPosition representing the full 3D position