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