Interface BlockCustomComponent
interface BlockCustomComponent { beforeOnPlayerPlace?: ( arg0: BlockComponentPlayerPlaceBeforeEvent, arg1: CustomComponentParameters, ) => void; onEntityFallOn?: ( arg0: BlockComponentEntityFallOnEvent, arg1: CustomComponentParameters, ) => void; onPlace?: ( arg0: BlockComponentOnPlaceEvent, arg1: CustomComponentParameters, ) => void; onPlayerDestroy?: ( arg0: BlockComponentPlayerDestroyEvent, arg1: CustomComponentParameters, ) => void; onPlayerInteract?: ( arg0: BlockComponentPlayerInteractEvent, arg1: CustomComponentParameters, ) => void; onRandomTick?: ( arg0: BlockComponentRandomTickEvent, arg1: CustomComponentParameters, ) => void; onStepOff?: ( arg0: BlockComponentStepOffEvent, arg1: CustomComponentParameters, ) => void; onStepOn?: ( arg0: BlockComponentStepOnEvent, arg1: CustomComponentParameters, ) => void; onTick?: ( arg0: BlockComponentTickEvent, arg1: CustomComponentParameters, ) => void;} Properties
Optional
beforeOnPlayerPlace
Contains a set of events that will be raised for a block. This object must be bound using the BlockRegistry.
Example: registerBlockComponent_v1.ts
Example: registerBlockComponent_v2.ts