Create a new material instances property for a block definition.
The block definition that this property will be attached to.
Optional
options: Partial<BlockTypeMaterialInstancesComponentOptions>The options for the material instances property.
Protected
Readonly
collectionThe properties collection of the block type.
Readonly
identifierThe component identifier of the block type.
Readonly
materialsThe material instances of the block.
Protected
Readonly
typeThe block type of the component.
Static
Readonly
identifierThe component identifier of the block type.
Protected
componentThe component value of the block type.
Create a new material instance.
The key of the material instance.
The options for the material instance.
Remove a material instance.
Refrence the wiki for more information: https://wiki.bedrock.dev/blocks/block-components.html#material-instances