Contains information related to changes in weather in the environment.
export class WeatherChangeBeforeEvent { private constructor(); cancel: boolean; duration: number; newWeather: WeatherType; readonly previousWeather: WeatherType;} Copy
export class WeatherChangeBeforeEvent { private constructor(); cancel: boolean; duration: number; newWeather: WeatherType; readonly previousWeather: WeatherType;}
Private
If set to true the weather change will be cancelled.
This property can't be read in early-execution mode.
Sets the duration of the new weather (in ticks).
The type of weather that will be applied.
Readonly
The type of weather that it was prior to the event being fired.
Contains information related to changes in weather in the environment.
Source