PlayerBreakBlockBeforeEventSignal
¶
文档版本:1.21.60.21
PlayerBreakBlockBeforeEventSignal
类。script_api.minecraft/server.playerbreakblockbeforeeventsignal.description
方法¶
subscribe
script_api.minecraft/server.playerbreakblockbeforeeventsignal.subscribe.description
subscribe(callback: (arg: PlayerBreakBlockBeforeEvent) => void, options?: BlockEventOptions): (arg: PlayerBreakBlockBeforeEvent) => void
callback
:(PlayerBreakBlockBeforeEvent) => void
- script_api.minecraft/server.playerbreakblockbeforeeventsignal.subscribe.callback.description
options
?:BlockEventOptions
=null
- script_api.minecraft/server.playerbreakblockbeforeeventsignal.subscribe.options.description
- 返回值:
(PlayerBreakBlockBeforeEvent) => void
- script_api.minecraft/server.playerbreakblockbeforeeventsignal.subscribe.return
unsubscribe
script_api.minecraft/server.playerbreakblockbeforeeventsignal.unsubscribe.description
callback
:(PlayerBreakBlockBeforeEvent) => void
- script_api.minecraft/server.playerbreakblockbeforeeventsignal.unsubscribe.callback.description
- 返回值:
void
- script_api.minecraft/server.playerbreakblockbeforeeventsignal.unsubscribe.return