@minecraft/server-editor
Preparing search index...
ProbabilityBlockPaletteItem
Class ProbabilityBlockPaletteItem
Beta
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
Beta
Parameters
Optional
displayName
:
string
Returns
ProbabilityBlockPaletteItem
Methods
add
Block
addBlock
(
block
:
string
|
BlockPermutation
|
BlockType
,
weight
:
number
)
:
void
Beta
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
()
:
undefined
|
BlockType
Beta
Returns
undefined
|
BlockType
get
Blocks
getBlocks
()
:
WeightedBlock
[]
Beta
Returns
WeightedBlock
[]
get
Display
Name
getDisplayName
()
:
undefined
|
string
Beta
Returns
undefined
|
string
get
Type
getType
()
:
BlockPaletteItemType
Beta
Returns
BlockPaletteItemType
remove
Block
At
removeBlockAt
(
index
:
number
)
:
void
Beta
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
Beta
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
Protected
Inherited
External
World Mutation
Early Execution
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
@minecraft/server-editor
Loading...
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.