Class weather


public class weather extends Object
handles all weather things
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) long
    how long thunders are forbidden
    (package private) static long
    last time a thunder has been
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    changeWeather​(org.bukkit.World world)
    handles weahter
    private static boolean
    isThunder​(org.bukkit.World world)
    returns if there is a thunderstorm

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • lastThunder

      static long lastThunder
      last time a thunder has been
    • delay

      long delay
      how long thunders are forbidden
  • Constructor Details

    • weather

      public weather()
  • Method Details

    • isThunder

      private static boolean isThunder(org.bukkit.World world)
      returns if there is a thunderstorm
      Parameters:
      world - the world to check in
      Returns:
      boolean if a thunderstorm is active or not
    • changeWeather

      public static void changeWeather(org.bukkit.World world)
      handles weahter
      Parameters:
      world - the current world