Package net.minecraft.entity.attribute
Class EntityAttribute
java.lang.Object
net.minecraft.entity.attribute.EntityAttribute
- Direct Known Subclasses:
ClampedEntityAttribute
public class EntityAttribute extends Object
-
Field Summary
Fields Modifier and Type Field Description private doublefallbackprivate booleantrackedprivate StringtranslationKey -
Constructor Summary
Constructors Modifier Constructor Description protectedEntityAttribute(String translationKey, double fallback) -
Method Summary
Modifier and Type Method Description doubleclamp(double value)doublegetDefaultValue()StringgetTranslationKey()booleanisTracked()EntityAttributesetTracked(boolean tracked)
-
Field Details
-
fallback
private final double fallback -
tracked
private boolean tracked -
translationKey
-
-
Constructor Details
-
Method Details
-
getDefaultValue
public double getDefaultValue() -
isTracked
public boolean isTracked() -
setTracked
-
clamp
public double clamp(double value) -
getTranslationKey
-