Class RangedAttribute
java.lang.Object
net.minecraft.world.entity.ai.attributes.Attribute
net.minecraft.world.entity.ai.attributes.RangedAttribute
- All Implemented Interfaces:
IAttributeExtension
- Direct Known Subclasses:
PercentageAttribute
-
Nested Class Summary
Nested classes/interfaces inherited from class Attribute
Attribute.Sentiment -
Field Summary
FieldsFields inherited from class Attribute
CODEC, MERGED_BLUE, MERGED_GRAY, MERGED_RED, STREAM_CODECFields inherited from interface IAttributeExtension
FORMAT -
Constructor Summary
ConstructorsConstructorDescriptionRangedAttribute(String descriptionId, double defaultValue, double minValue, double maxValue) -
Method Summary
Methods inherited from class Attribute
getDefaultValue, getDescriptionId, getMergedStyle, getStyle, isClientSyncable, setSentiment, setSyncableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IAttributeExtension
getBaseId, getDebugInfo, toBaseComponent, toComponent, toValueComponent
-
Field Details
-
minValue
private final double minValue -
maxValue
private final double maxValue
-
-
Constructor Details
-
RangedAttribute
-
-
Method Details
-
getMinValue
public double getMinValue() -
getMaxValue
public double getMaxValue() -
sanitizeValue
public double sanitizeValue(double value) - Overrides:
sanitizeValuein classAttribute
-