Class WeatherChangeEvent

java.lang.Object
com.welcome234.pluginsystem.events.WeatherChangeEvent

public class WeatherChangeEvent extends Object
Called when the world weather changes
  • Constructor Details

    • WeatherChangeEvent

      public WeatherChangeEvent(boolean raining)
  • Method Details

    • isNowRaining

      public boolean isNowRaining()
      Gets whether it is now raining
      Returns:
      Whether raining
    • isCancelled

      public boolean isCancelled()
      Gets whether this event is cancelled
      Returns:
      Whether cancelled
    • setCancelled

      public void setCancelled(boolean cancelled)
      Sets the cancellation status of this event
      Parameters:
      cancelled - Whether cancelled