Class WeatherType

java.lang.Object
com.sk89q.worldedit.world.weather.WeatherType
All Implemented Interfaces:
Keyed

public class WeatherType extends Object implements Keyed
  • Field Details

  • Constructor Details

    • WeatherType

      public WeatherType(String id)
  • Method Details

    • getId

      public String getId()
      Description copied from interface: Keyed
      The id of this object in the registry. Must be unique, and lowercase. Certain registries (e.g Namespaced ones) may have additional restrictions.
      Specified by:
      getId in interface Keyed
      Returns:
      an id
    • getName

      public String getName()
      Gets the name of this weather, or the ID if the name cannot be found.
      Returns:
      The name, or ID
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object