public interface ChangeWorldWeatherEvent extends TargetWorldEvent, Cancellable
WeatherUniverse
's Weather
changes.Modifier and Type | Method and Description |
---|---|
int |
getDuration()
Sets the duration of the
Weather (in ticks). |
Weather |
getInitialWeather()
Gets the
Weather that was happening before this event. |
int |
getOriginalDuration()
Gets the original duration of
getWeather() that would run after event. |
Weather |
getOriginalWeather()
Gets the original
Weather that the event is creating. |
Weather |
getWeather()
Gets the
Weather that this event is creating. |
void |
setDuration(int duration)
Sets the duration of the
Weather (in ticks). |
void |
setWeather(Weather weather)
Sets what the new
Weather should be with a random duration. |
getTargetWorld
getCause, getContext, getSource
isCancelled, setCancelled
Weather getOriginalWeather()
Weather
that the event is creating.Weather getInitialWeather()
Weather
that was happening before this event.Weather getWeather()
Weather
that this event is creating.void setWeather(Weather weather)
Weather
should be with a random duration.weather
- The new Weatherint getOriginalDuration()
getWeather()
that would run after event.int getDuration()
Weather
(in ticks).void setDuration(int duration)
Weather
(in ticks).duration
- The duration of the weather (in ticks)