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