@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
()
:
BlockType
|
undefined
Beta
Returns
BlockType
|
undefined
get
Blocks
getBlocks
()
:
WeightedBlock
[]
Beta
Returns
WeightedBlock
[]
get
Display
Name
getDisplayName
()
:
string
|
undefined
Beta
Returns
string
|
undefined
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
Not 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.