Region

class Region(min: Location, max: Location)

A region in the world.

Parameters

min

The start of the region, inclusive.

max

The end of the region, inclusive.

Constructors

Link copied to clipboard
constructor(min: Location, max: Location)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val max: Location

The end of the region, inclusive.

Link copied to clipboard
val min: Location

The start of the region, inclusive.

Link copied to clipboard
val world: World

The World that this Region is in.

Functions

Link copied to clipboard
operator fun contains(loc: Location): Boolean

Checks whether the given Location is inside this Region.

operator fun contains(block: Block): Boolean

Checks whether the given Block is inside this Region.

Link copied to clipboard
fun toBoundingBox(): BoundingBox

Converts this Region to a BoundingBox.