Interface ChangeWeatherEvent
- 
- All Superinterfaces:
- Cancellable,- Event
 
 public interface ChangeWeatherEvent extends Event, Cancellable Called when aWeatherchange occurs
- 
- 
Method SummaryAll 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.CancellableisCancelled, setCancelled
 
- 
 
- 
- 
- 
Method Detail- 
universeWeatherUniverse universe() TheWeatherUniversein which the weather changed- Returns:
- The weather universe
 
 - 
weatherTransaction<Weather> weather() The weather change.- Returns:
- The weather change.
 
 - 
setWeatherdefault void setWeather(WeatherType type, Ticks duration) Sets a custom weather result.- Parameters:
- type- The weather type
- duration- The custom weather duration
 
 
- 
 
-