Enum Class Weather

java.lang.Object
java.lang.Enum<Weather>
valorless.rarespawns.enums.Weather
All Implemented Interfaces:
Serializable, Comparable<Weather>, Constable

public enum Weather extends Enum<Weather>
Enumeration representing different weather conditions.
  • Enum Constant Details

    • CLEAR

      public static final Weather CLEAR
    • RAIN

      public static final Weather RAIN
    • THUNDER

      public static final Weather THUNDER
  • Method Details

    • values

      public static Weather[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Weather valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public static Weather get(String str)
      Retrieves the Weather enum constant corresponding to the given string, ignoring case.
      Parameters:
      str - The string representation of the weather condition.
      Returns:
      The matching Weather enum constant, or null if no match is found.