Preparing search index...
The search index is not available
Script API - v1.21.80.27
Script API - v1.21.80.27
@minecraft/server-editor
ProbabilityBlockPaletteItem
Class ProbabilityBlockPaletteItem
Hierarchy (
View Summary
)
IBlockPaletteItem
ProbabilityBlockPaletteItem
Index
Constructors
constructor
Methods
add
Block
get
Block
get
Blocks
get
Display
Name
get
Type
remove
Block
At
set
Block
Constructors
constructor
new
ProbabilityBlockPaletteItem
(
displayName
?:
string
,
)
:
ProbabilityBlockPaletteItem
Parameters
Optional
displayName
:
string
Returns
ProbabilityBlockPaletteItem
Methods
add
Block
addBlock
(
block
:
string
|
BlockPermutation
|
BlockType
,
weight
:
number
)
:
void
Parameters
block
:
string
|
BlockPermutation
|
BlockType
weight
:
number
Returns
void
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.
get
Block
getBlock
()
:
BlockType
Returns
BlockType
get
Blocks
getBlocks
()
:
WeightedBlock
[]
Returns
WeightedBlock
[]
get
Display
Name
getDisplayName
()
:
string
Returns
string
get
Type
getType
()
:
BlockPaletteItemType
Returns
BlockPaletteItemType
remove
Block
At
removeBlockAt
(
index
:
number
)
:
void
Parameters
index
:
number
Returns
void
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.
set
Block
setBlock
(
block
:
string
|
BlockPermutation
|
BlockType
)
:
void
Parameters
block
:
string
|
BlockPermutation
|
BlockType
Returns
void
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.
Settings
Member Visibility
External
Inherited
Private
Protected
Deprecated
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
add
Block
get
Block
get
Blocks
get
Display
Name
get
Type
remove
Block
At
set
Block
Script API - v1.21.80.27
Loading...
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.