跳转至

BlockCustomComponent

文档版本:1.21.0.24

BlockCustomComponent接口。script_api.minecraft/server.blockcustomcomponent.description

属性

beforeOnPlayerPlace
beforeOnPlayerPlace: (arg: BlockComponentPlayerPlaceBeforeEvent) => void | undefined;
onEntityFallOn
onEntityFallOn: (arg: BlockComponentEntityFallOnEvent) => void | undefined;
onPlace
onPlace: (arg: BlockComponentOnPlaceEvent) => void | undefined;
onPlayerDestroy
onPlayerDestroy: (arg: BlockComponentPlayerDestroyEvent) => void | undefined;
onPlayerInteract
onPlayerInteract: (arg: BlockComponentPlayerInteractEvent) => void | undefined;
onRandomTick
onRandomTick: (arg: BlockComponentRandomTickEvent) => void | undefined;
onStepOff
onStepOff: (arg: BlockComponentStepOffEvent) => void | undefined;
onStepOn
onStepOn: (arg: BlockComponentStepOnEvent) => void | undefined;
onTick
onTick: (arg: BlockComponentTickEvent) => void | undefined;