Class: ProbabilityBlockPaletteItem
Extends
Constructors
new ProbabilityBlockPaletteItem()
new ProbabilityBlockPaletteItem(
displayName
?):ProbabilityBlockPaletteItem
Parameters
Parameter | Type |
---|---|
displayName ? | string |
Returns
Overrides
IBlockPaletteItem
. constructor
Methods
addBlock()
addBlock(
block
,weight
):void
Parameters
Parameter | Type |
---|---|
block | string | BlockType | BlockPermutation |
weight | number |
Returns
void
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.
Error
getBlock()
getBlock():
BlockType
Returns
BlockType
Inherited from
getDisplayName()
getDisplayName():
string
Returns
string
Inherited from
IBlockPaletteItem
. getDisplayName
getType()
getType():
BlockPaletteItemType
Returns
Inherited from
removeBlockAt()
removeBlockAt(
index
):void
Parameters
Parameter | Type |
---|---|
index | number |
Returns
void
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.
minecraftcommon.ArgumentOutOfBoundsError
Error
setBlock()
setBlock(
block
):void
Parameters
Parameter | Type |
---|---|
block | string | BlockType | BlockPermutation |
Returns
void
Inherited from
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.
Error