类 WeatherChangeBeforeEvent实验性

Contains information related to changes in weather in the environment.

属性

cancel: boolean

If set to true the weather change will be cancelled.

duration: number

Sets the duration of the new weather (in ticks).

newWeather: WeatherType

The type of weather that will be applied.

previousWeather: WeatherType

The type of weather that it was prior to the event being fired.