Skip to content

2D Point Range

An immutable record describing a 2D rectangular range in a world, defined by minimum and maximum X and Z coordinates. It ignores the Y axis, so it represents a region across the full vertical column rather than a box.

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