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