PlayerInteractWithBlockBeforeEventSignal
¶
文档版本:1.21.60.21
PlayerInteractWithBlockBeforeEventSignal
类。script_api.minecraft/server.playerinteractwithblockbeforeeventsignal.description
方法¶
subscribe
script_api.minecraft/server.playerinteractwithblockbeforeeventsignal.subscribe.description
subscribe(callback: (arg: PlayerInteractWithBlockBeforeEvent) => void): (arg: PlayerInteractWithBlockBeforeEvent) => void
callback
:(PlayerInteractWithBlockBeforeEvent) => void
- script_api.minecraft/server.playerinteractwithblockbeforeeventsignal.subscribe.callback.description
unsubscribe
script_api.minecraft/server.playerinteractwithblockbeforeeventsignal.unsubscribe.description
callback
:(PlayerInteractWithBlockBeforeEvent) => void
- script_api.minecraft/server.playerinteractwithblockbeforeeventsignal.unsubscribe.callback.description
- 返回值:
void
- script_api.minecraft/server.playerinteractwithblockbeforeeventsignal.unsubscribe.return