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