@minecraft/server-editor
Preparing search index...
BlockUtilities
Class BlockUtilities
Beta
Index
Methods
fill
Volume
get
Contiguous
Selection
get
Dimension
Location
Bounding
Box
get
Dimension
Max
Location
get
Dimension
Min
Location
get
Face
Preview
Selection
is
Location
Inside
Current
Dimension
Bounds
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
Dimension
Location
Bounding
Box
getDimensionLocationBoundingBox
()
:
BlockBoundingBox
Beta
Returns
BlockBoundingBox
Remarks
This function can't be called in read-only mode.
get
Dimension
Max
Location
getDimensionMaxLocation
()
:
Vector3
Beta
Returns
Vector3
Remarks
This function can't be called in read-only mode.
get
Dimension
Min
Location
getDimensionMinLocation
()
:
Vector3
Beta
Returns
Vector3
Remarks
This function can't be called in read-only mode.
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
is
Location
Inside
Current
Dimension
Bounds
isLocationInsideCurrentDimensionBounds
(
locationOrVolumeOrBounds
:
|
Vector3
|
BlockBoundingBox
|
BlockVolumeBase
|
RelativeVolumeListBlockVolume
,
)
:
boolean
Beta
Parameters
locationOrVolumeOrBounds
:
Vector3
|
BlockBoundingBox
|
BlockVolumeBase
|
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
Dimension
Location
Bounding
Box
get
Dimension
Max
Location
get
Dimension
Min
Location
get
Face
Preview
Selection
is
Location
Inside
Current
Dimension
Bounds
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.