public class EntityAttribute extends Object
Modifier and Type | Field and Description |
---|---|
private double |
fallback |
private boolean |
tracked |
private String |
translationKey |
Modifier | Constructor and Description |
---|---|
protected |
EntityAttribute(String translationKey,
double fallback) |
Modifier and Type | Method and Description |
---|---|
double |
clamp(double value) |
double |
getDefaultValue() |
String |
getTranslationKey() |
boolean |
isTracked() |
EntityAttribute |
setTracked(boolean tracked) |
private final double fallback
private boolean tracked
private final String translationKey
protected EntityAttribute(String translationKey, double fallback)
public double getDefaultValue()
public boolean isTracked()
public EntityAttribute setTracked(boolean tracked)
public double clamp(double value)
public String getTranslationKey()