@minecraft/server
    Preparing search index...

    Class WeatherChangeBeforeEventBeta

    Contains information related to changes in weather in the environment.

    Index

    Properties

    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.