Class: SimpleBlockPaletteItem
Extends
Constructors
new SimpleBlockPaletteItem()
new SimpleBlockPaletteItem(
displayName
?):SimpleBlockPaletteItem
Parameters
Parameter | Type |
---|---|
displayName ? | string |
Returns
Overrides
IBlockPaletteItem
. constructor
Methods
getBlock()
getBlock():
BlockType
Returns
BlockType
Inherited from
getDisplayName()
getDisplayName():
string
Returns
string
Inherited from
IBlockPaletteItem
. getDisplayName
getType()
getType():
BlockPaletteItemType
Returns
Inherited from
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