Class: WeatherChangeBeforeEvent
eventBeta
Contains information related to changes in weather in the environment.
包含与环境中天气变化相关的信息。
Properties
cancel
cancel:
boolean
Beta
Remarks
If set to true the weather change will be cancelled.
如果设置为 true,天气变化将被取消。
duration
duration:
number
Beta
Remarks
Sets the duration of the new weather (in ticks).
设置新天气的持续时间(以刻为单位)。
newWeather
newWeather:
WeatherType
Beta
Remarks
The type of weather that will be applied.
将应用的天气类型。
previousWeather
readonlypreviousWeather:WeatherType
Beta
Remarks
The type of weather that it was prior to the event being fired.
事件触发之前的天气类型。
