Class BaseAttribute
- java.lang.Object
-
- net.minecraft.entity.ai.attributes.BaseAttribute
-
- All Implemented Interfaces:
IAttribute
- Direct Known Subclasses:
RangedAttribute
public abstract class BaseAttribute extends java.lang.Object implements IAttribute
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseAttribute(IAttribute parIAttribute, java.lang.String unlocalizedNameIn, double defaultValueIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
IAttribute
func_180372_d()
java.lang.String
getAttributeUnlocalizedName()
double
getDefaultValue()
boolean
getShouldWatch()
int
hashCode()
BaseAttribute
setShouldWatch(boolean shouldWatchIn)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.entity.ai.attributes.IAttribute
clampValue
-
-
-
-
Constructor Detail
-
BaseAttribute
protected BaseAttribute(IAttribute parIAttribute, java.lang.String unlocalizedNameIn, double defaultValueIn)
-
-
Method Detail
-
getAttributeUnlocalizedName
public java.lang.String getAttributeUnlocalizedName()
- Specified by:
getAttributeUnlocalizedName
in interfaceIAttribute
-
getDefaultValue
public double getDefaultValue()
- Specified by:
getDefaultValue
in interfaceIAttribute
-
getShouldWatch
public boolean getShouldWatch()
- Specified by:
getShouldWatch
in interfaceIAttribute
-
setShouldWatch
public BaseAttribute setShouldWatch(boolean shouldWatchIn)
-
func_180372_d
public IAttribute func_180372_d()
- Specified by:
func_180372_d
in interfaceIAttribute
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
-