Interface ItemCustomComponent
interface ItemCustomComponent { onBeforeDurabilityDamage?: ( arg0: ItemComponentBeforeDurabilityDamageEvent, arg1: CustomComponentParameters, ) => void; onCompleteUse?: ( arg0: ItemComponentCompleteUseEvent, arg1: CustomComponentParameters, ) => void; onConsume?: ( arg0: ItemComponentConsumeEvent, arg1: CustomComponentParameters, ) => void; onHitEntity?: ( arg0: ItemComponentHitEntityEvent, arg1: CustomComponentParameters, ) => void; onMineBlock?: ( arg0: ItemComponentMineBlockEvent, arg1: CustomComponentParameters, ) => void; onUse?: ( arg0: ItemComponentUseEvent, arg1: CustomComponentParameters, ) => void; onUseOn?: ( arg0: ItemComponentUseOnEvent, arg1: CustomComponentParameters, ) => void;} Properties
Optional
onBeforeDurabilityDamage
Contains a set of events that will be raised for an item. This object must be bound using the ItemComponentRegistry.
Example: registerItemComponents_v1.ts
Example: registerItemComponents_v2.ts