Class AbstractProperty<T>

java.lang.Object
com.sk89q.worldedit.registry.state.AbstractProperty<T>
All Implemented Interfaces:
Property<T>
Direct Known Subclasses:
BooleanProperty, DirectionalProperty, EnumProperty, IntegerProperty

public abstract class AbstractProperty<T> extends Object implements Property<T>
  • Constructor Details

    • AbstractProperty

      public AbstractProperty(String name, List<T> values)
  • Method Details

    • getValues

      public List<T> getValues()
      Description copied from interface: Property
      Return a list of available values for this state.
      Specified by:
      getValues in interface Property<T>
      Returns:
      the list of state values
    • getName

      public String getName()
      Description copied from interface: Property
      Returns the name of this state.
      Specified by:
      getName in interface Property<T>
      Returns:
      The state name
    • 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