Beta
Private
constructorThe id that represents this custom component. Must have a namespace. This id can be specified in a block's JSON configuration under the 'minecraft:custom_components' block component.
The collection of event functions that will be called when the event occurs on a block using this custom component id.
Registers a block custom component that can be used in block JSON configuration.
This function can throw errors.
minecraftcommon.EngineError
Error
Provides the functionality for registering custom components for blocks.