Region

class Region(val min: Location, val 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
Link copied to clipboard
val min: Location
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.