Skip to content

3D Point Range

An immutable record describing a 3D rectangular range in a world, defined by minimum and maximum X, Y, and Z coordinates. Unlike PointRange2D, it bounds the Y axis too, so it represents a full box rather than a vertical column.

  • of(Location, Location): Creates a PointRange3D spanning two locations, sorting their X, Y, and Z block coordinates into the correct min/max bounds automatically.
  • getMinLocation(World): Returns the minimum-corner Location in the given world, using the range’s minimum X, Y, and Z.
  • getMaxLocation(World): Returns the maximum-corner Location in the given world, using the range’s maximum X, Y, and Z.