The BlockComponentRegistry class in @minecraft/server.
Class in @minecraft/server
import { BlockComponentRegistry } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Methods
Section titled “Methods”registerCustomComponent
Section titled “registerCustomComponent”registerCustomComponent(name: string, customComponent: BlockCustomComponent): void;Parameters
namestringcustomComponentBlockCustomComponent
Types