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