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 protected
PropertyHelper(java.lang.String name, java.lang.Class<T> valueClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
java.lang.String
getName()
+ Get the name for the given value.java.lang.Class<T>
getValueClass()
+ The class of the values of this propertyint
hashCode()
java.lang.String
toString()
-
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:
getValueClass
in interfaceIProperty<T extends java.lang.Comparable<T>>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-