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