Interface ChangeWeatherEvent

All Superinterfaces:
Cancellable, Event

public interface ChangeWeatherEvent extends Event, Cancellable
Called when a Weather change occurs
  • Method Details Link icon

    • universe Link icon

      WeatherUniverse universe()
      The WeatherUniverse in which the weather changed
      Returns:
      The weather universe
    • weather Link icon

      Transaction<Weather> weather()
      The weather change.
      Returns:
      The weather change.
    • setWeather Link icon

      default void setWeather(WeatherType type, Ticks duration)
      Sets a custom weather result.
      Parameters:
      type - The weather type
      duration - The custom weather duration