Interface ChangeWeatherEvent
-
- All Superinterfaces:
Cancellable,Event
public interface ChangeWeatherEvent extends Event, Cancellable
Called when aWeatherchange occurs
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidsetWeather(WeatherType type, Ticks duration)Sets a custom weather result.WeatherUniverseuniverse()TheWeatherUniversein 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()
TheWeatherUniversein 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
-
-