@minecraft
    正在准备搜索索引...

    类 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.