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 net.minecraft.world.entity.ai.attributes.Attribute
Attribute.Sentiment
-
Field Summary
FieldsFields inherited from class net.minecraft.world.entity.ai.attributes.Attribute
CODEC, MERGED_BLUE, MERGED_GRAY, MERGED_RED, STREAM_CODEC
Fields inherited from interface net.neoforged.neoforge.common.extensions.IAttributeExtension
FORMAT
-
Constructor Summary
ConstructorsConstructorDescriptionRangedAttribute
(String p_22310_, double p_22311_, double p_22312_, double p_22313_) -
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.attributes.Attribute
getDefaultValue, getDescriptionId, getMergedStyle, getStyle, isClientSyncable, setSentiment, setSyncable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.common.extensions.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 p_22315_) - Overrides:
sanitizeValue
in classAttribute
-