Class: ListBlockVolume
Extends
Constructors
new ListBlockVolume()
new ListBlockVolume(
locations
):ListBlockVolume
Parameters
Parameter | Type |
---|---|
locations | Vector3 [] |
Returns
Overrides
Methods
add()
add(
locations
):void
Parameters
Parameter | Type |
---|---|
locations | Vector3 [] |
Returns
void
Remarks
This function can't be called in read-only mode.
getBlockLocationIterator()
Beta
getBlockLocationIterator():
BlockLocationIterator
Returns
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
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
Remarks
Return the capacity (volume) of the BlockVolume (WDH)
This function can't be called in read-only mode.
getMax()
getMax():
Vector3
Returns
Inherited from
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
Inherited from
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
Inherited from
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
Parameter | Type |
---|---|
location | Vector3 |
Returns
boolean
Inherited from
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
Parameter | Type |
---|---|
locations | Vector3 [] |
Returns
void
Remarks
This function can't be called in read-only mode.
translate()
translate(
delta
):void
Parameters
Parameter | Type | Description |
---|---|---|
delta | Vector3 | Amount of blocks to move by |
Returns
void
Inherited from
Remarks
Move a BlockVolume by a specified amount
This function can't be called in read-only mode.