Skip to main content

Class: ListBlockVolume

Extends

Constructors

new ListBlockVolume()

new ListBlockVolume(locations): ListBlockVolume

Parameters

ParameterType
locationsVector3[]

Returns

ListBlockVolume

Overrides

BlockVolumeBase . constructor

Methods

add()

add(locations): void

Parameters

ParameterType
locationsVector3[]

Returns

void

Remarks

This function can't be called in read-only mode.


getBlockLocationIterator()

Beta

getBlockLocationIterator(): BlockLocationIterator

Returns

BlockLocationIterator

Inherited from

BlockVolumeBase . getBlockLocationIterator

Remarks

Fetch a BlockLocationIterator that represents all of the block world locations within the specified volume

This function can't be called in read-only mode.


getBoundingBox()

Beta

getBoundingBox(): BoundingBox

Returns

BoundingBox

Inherited from

BlockVolumeBase . getBoundingBox

Remarks

Return a BoundingBox object which represents the validated min and max coordinates of the volume

This function can't be called in read-only mode.

Throws

This function can throw errors.


getCapacity()

getCapacity(): number

Returns

number

Inherited from

BlockVolumeBase . getCapacity

Remarks

Return the capacity (volume) of the BlockVolume (WDH)

This function can't be called in read-only mode.


getMax()

getMax(): Vector3

Returns

Vector3

Inherited from

BlockVolumeBase . getMax

Remarks

Get the largest corner position of the volume (guaranteed to be >= min)

This function can't be called in read-only mode.

Throws

This function can throw errors.


getMin()

getMin(): Vector3

Returns

Vector3

Inherited from

BlockVolumeBase . getMin

Remarks

Get the smallest corner position of the volume (guaranteed to be <= max)

This function can't be called in read-only mode.

Throws

This function can throw errors.


getSpan()

getSpan(): Vector3

Returns

Vector3

Inherited from

BlockVolumeBase . getSpan

Remarks

Get a Vector3 object where each component represents the number of blocks along that axis

This function can't be called in read-only mode.


isInside()

isInside(location): boolean

Parameters

ParameterType
locationVector3

Returns

boolean

Inherited from

BlockVolumeBase . isInside

Remarks

Check to see if a given world block location is inside a BlockVolume

This function can't be called in read-only mode.


remove()

remove(locations): void

Parameters

ParameterType
locationsVector3[]

Returns

void

Remarks

This function can't be called in read-only mode.


translate()

translate(delta): void

Parameters

ParameterTypeDescription
deltaVector3Amount of blocks to move by

Returns

void

Inherited from

BlockVolumeBase . translate

Remarks

Move a BlockVolume by a specified amount

This function can't be called in read-only mode.