@minecraft/server-editor
Preparing search index...
BlockUtilities
Class BlockUtilities
Beta
Index
Methods
fill
Volume
get
Contiguous
Selection
get
Face
Preview
Selection
get
Max
World
Location
get
Min
World
Location
is
Location
In
World
quick
Extrude
shrink
Wrap
Volume
trim
Volume
To
Fit
Contents
Methods
fill
Volume
fillVolume
(
volume
:
|
BlockVolumeBase
|
CompoundBlockVolume
|
RelativeVolumeListBlockVolume
,
block
?:
string
|
BlockPermutation
|
BlockType
,
)
:
void
Beta
Parameters
volume
:
BlockVolumeBase
|
CompoundBlockVolume
|
RelativeVolumeListBlockVolume
Optional
block
:
string
|
BlockPermutation
|
BlockType
Returns
void
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.
get
Contiguous
Selection
getContiguousSelection
(
properties
?:
ContiguousSelectionProperties
,
)
:
CompoundBlockVolume
Beta
Parameters
Optional
properties
:
ContiguousSelectionProperties
Returns
CompoundBlockVolume
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.
Error
get
Face
Preview
Selection
getFacePreviewSelection
(
properties
?:
QuickExtrudeProperties
)
:
ListBlockVolume
Beta
Parameters
Optional
properties
:
QuickExtrudeProperties
Returns
ListBlockVolume
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.
Error
get
Max
World
Location
getMaxWorldLocation
()
:
Vector3
Beta
Returns
Vector3
Remarks
This function can't be called in read-only mode.
get
Min
World
Location
getMinWorldLocation
()
:
Vector3
Beta
Returns
Vector3
Remarks
This function can't be called in read-only mode.
is
Location
In
World
isLocationInWorld
(
locationOrVolumeOrBounds
:
|
Vector3
|
BlockVolumeBase
|
BoundingBox
|
RelativeVolumeListBlockVolume
,
)
:
boolean
Beta
Parameters
locationOrVolumeOrBounds
:
Vector3
|
BlockVolumeBase
|
BoundingBox
|
RelativeVolumeListBlockVolume
Returns
boolean
Remarks
This function can't be called in read-only mode.
quick
Extrude
quickExtrude
(
properties
?:
QuickExtrudeProperties
)
:
void
Beta
Parameters
Optional
properties
:
QuickExtrudeProperties
Returns
void
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.
shrink
Wrap
Volume
shrinkWrapVolume
(
volume
:
BlockVolumeBase
|
RelativeVolumeListBlockVolume
,
)
:
RelativeVolumeListBlockVolume
Beta
Parameters
volume
:
BlockVolumeBase
|
RelativeVolumeListBlockVolume
Returns
RelativeVolumeListBlockVolume
Remarks
This function can't be called in read-only mode.
trim
Volume
To
Fit
Contents
trimVolumeToFitContents
(
volume
:
BlockVolumeBase
|
RelativeVolumeListBlockVolume
,
retainMarqueeAfterTrimming
:
boolean
,
ignoreLiquid
:
boolean
,
ignoreNoCollision
:
boolean
,
blockMask
?:
BlockMaskList
,
)
:
RelativeVolumeListBlockVolume
Beta
Parameters
volume
:
BlockVolumeBase
|
RelativeVolumeListBlockVolume
retainMarqueeAfterTrimming
:
boolean
ignoreLiquid
:
boolean
ignoreNoCollision
:
boolean
Optional
blockMask
:
BlockMaskList
Returns
RelativeVolumeListBlockVolume
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.
Error
Settings
Member Visibility
Protected
Inherited
External
World Mutation
Early Execution
Theme
OS
Light
Dark
On This Page
Methods
fill
Volume
get
Contiguous
Selection
get
Face
Preview
Selection
get
Max
World
Location
get
Min
World
Location
is
Location
In
World
quick
Extrude
shrink
Wrap
Volume
trim
Volume
To
Fit
Contents
@minecraft/server-editor
Loading...
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.