Class: BlockPalette
Constructors
new BlockPalette()
new BlockPalette():
BlockPalette
Returns
Methods
getItem()
getItem(
index
):IBlockPaletteItem
Parameters
Parameter | Type |
---|---|
index | number |
Returns
Throws
This function can throw errors.
minecraftcommon.ArgumentOutOfBoundsError
removeItemAt()
removeItemAt(
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
removeItems()
removeItems():
void
Returns
void
Remarks
This function can't be called in read-only mode.
setItem()
setItem(
blockPaletteItem
,index
):void
Parameters
Parameter | Type |
---|---|
blockPaletteItem | IBlockPaletteItem |
index | number |
Returns
void
Remarks
This function can't be called in read-only mode.
Throws
This function can throw errors.
minecraftcommon.ArgumentOutOfBoundsError