For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/WeatherChangeBeforeEvent.md.

Class: WeatherChangeBeforeEvent

event

Beta

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

readonly previousWeather: WeatherType

Beta

Remarks

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

事件触发之前的天气类型。

同领域相关