Interface ChangeWeatherEvent
- All Superinterfaces:
Cancellable
,Event
Called when a
Weather
change occurs-
Method Summary
Modifier and TypeMethodDescriptiondefault void
setWeather
(WeatherType type, Ticks duration) Sets a custom weather result.universe()
TheWeatherUniverse
in which the weather changedweather()
The weather change.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
Method Details
-
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
Sets a custom weather result.- Parameters:
type
- The weather typeduration
- The custom weather duration
-