Package net.minecraft.block.properties
Class PropertyHelper<T extends java.lang.Comparable<T>>
- java.lang.Object
-
- net.minecraft.block.properties.PropertyHelper<T>
-
- All Implemented Interfaces:
IProperty<T>
- Direct Known Subclasses:
PropertyBool,PropertyEnum,PropertyInteger
public abstract class PropertyHelper<T extends java.lang.Comparable<T>> extends java.lang.Object implements IProperty<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPropertyHelper(java.lang.String name, java.lang.Class<T> valueClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object object)java.lang.StringgetName()+ Get the name for the given value.java.lang.Class<T>getValueClass()+ The class of the values of this propertyinthashCode()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraft.block.properties.IProperty
getAllowedValues, getName
-
-
-
-
Constructor Detail
-
PropertyHelper
protected PropertyHelper(java.lang.String name, java.lang.Class<T> valueClass)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:IProperty+ Get the name for the given value.
-
getValueClass
public java.lang.Class<T> getValueClass()
+ The class of the values of this property- Specified by:
getValueClassin interfaceIProperty<T extends java.lang.Comparable<T>>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-