weather

fun World.weather(type: WeatherType)

Sets the weather of the world using a DSL-style edit block.

This is a convenient extension function that wraps the world edit DSL to set the weather type.

Parameters

type

The weather type to set (e.g., WeatherType.CLEAR, WeatherType.RAIN, WeatherType.THUNDER).

Example usage:

world.weather(WeatherType.RAIN) // Set weather to rain

Equivalent to:

world.edit {
weather = WeatherType.RAIN
}