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