public class ClampedEntityAttribute extends EntityAttribute
Modifier and Type | Field and Description |
---|---|
private double |
maxValue |
private double |
minValue |
Constructor and Description |
---|
ClampedEntityAttribute(String translationKey,
double fallback,
double min,
double max) |
Modifier and Type | Method and Description |
---|---|
double |
clamp(double value) |
getDefaultValue, getTranslationKey, isTracked, setTracked
public ClampedEntityAttribute(String translationKey, double fallback, double min, double max)
public double clamp(double value)
clamp
in class EntityAttribute