public class RangedAttribute extends Attribute
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description |
private double |
maximumValue |
private double |
minimumValue |
Constructor and Description |
---|
RangedAttribute(IAttribute parentIn,
java.lang.String unlocalizedNameIn,
double defaultValue,
double minimumValueIn,
double maximumValueIn) |
Modifier and Type | Method and Description |
---|---|
double |
clampValue(double value) |
java.lang.String |
getDescription() |
RangedAttribute |
setDescription(java.lang.String descriptionIn) |
equals, getDefaultValue, getName, getParent, getShouldWatch, hashCode, setShouldWatch
private final double minimumValue
private final double maximumValue
private java.lang.String description
public RangedAttribute(@Nullable IAttribute parentIn, java.lang.String unlocalizedNameIn, double defaultValue, double minimumValueIn, double maximumValueIn)
public RangedAttribute setDescription(java.lang.String descriptionIn)
public java.lang.String getDescription()
public double clampValue(double value)