BlockRegion

data class BlockRegion(val startX: Int, val startY: Int, val startZ: Int, val endX: Int, val endY: Int, val endZ: Int)(source)

An axis-aligned bounding box defined by two corners (min/max are normalized).

Constructors

Link copied to clipboard
constructor(startX: Int, startY: Int, startZ: Int, endX: Int, endY: Int, endZ: Int)

Properties

Link copied to clipboard
val endX: Int

maximum X coordinate

Link copied to clipboard
val endY: Int

maximum Y coordinate

Link copied to clipboard
val endZ: Int

maximum Z coordinate

Link copied to clipboard
val startX: Int

minimum X coordinate

Link copied to clipboard
val startY: Int

minimum Y coordinate

Link copied to clipboard
val startZ: Int

minimum Z coordinate

Functions

Link copied to clipboard

Returns true if this region contains exactly one block.