Interface ChangeWeatherEvent
-
- All Superinterfaces:
Cancellable
,Event
public interface ChangeWeatherEvent extends Event, Cancellable
Called when aWeather
change occurs
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
setWeather(WeatherType type, Ticks duration)
Sets a custom weather result.WeatherUniverse
universe()
TheWeatherUniverse
in which the weather changedTransaction<Weather>
weather()
The weather change.-
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
-
-
-
Method Detail
-
universe
WeatherUniverse universe()
TheWeatherUniverse
in which the weather changed- Returns:
- The weather universe
-
weather
Transaction<Weather> weather()
The weather change.- Returns:
- The weather change.
-
setWeather
default void setWeather(WeatherType type, Ticks duration)
Sets a custom weather result.- Parameters:
type
- The weather typeduration
- The custom weather duration
-
-