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