Package net.minecraft.entity.attribute
Class ClampedEntityAttribute
java.lang.Object
net.minecraft.entity.attribute.EntityAttribute
net.minecraft.entity.attribute.ClampedEntityAttribute
public class ClampedEntityAttribute extends EntityAttribute
Represents a type of attribute with minimum and maximum value limits.
- Mappings:
Namespace Name official ask
intermediary net/minecraft/class_1329
named net/minecraft/entity/attribute/ClampedEntityAttribute
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ClampedEntityAttribute(String translationKey, double fallback, double min, double max)
-
Method Summary
Modifier and Type Method Description double
clamp(double value)
Methods inherited from class net.minecraft.entity.attribute.EntityAttribute
getDefaultValue, getTranslationKey, isTracked, setTracked
-
Field Details
-
minValue
private final double minValue- Mappings:
Namespace Name Mixin selector official a
Lask;a:D
intermediary field_6353
Lnet/minecraft/class_1329;field_6353:D
named minValue
Lnet/minecraft/entity/attribute/ClampedEntityAttribute;minValue:D
-
maxValue
private final double maxValue- Mappings:
Namespace Name Mixin selector official b
Lask;b:D
intermediary field_6351
Lnet/minecraft/class_1329;field_6351:D
named maxValue
Lnet/minecraft/entity/attribute/ClampedEntityAttribute;maxValue:D
-
-
Constructor Details
-
ClampedEntityAttribute
- Mappings:
Namespace Name Mixin selector official <init>
Lask;<init>(Ljava/lang/String;DDD)V
intermediary <init>
Lnet/minecraft/class_1329;<init>(Ljava/lang/String;DDD)V
named <init>
Lnet/minecraft/entity/attribute/ClampedEntityAttribute;<init>(Ljava/lang/String;DDD)V
-
-
Method Details
-
clamp
public double clamp(double value)- Overrides:
clamp
in classEntityAttribute
- Mappings:
Namespace Name Mixin selector official a
Lasd;a(D)D
intermediary method_6165
Lnet/minecraft/class_1320;method_6165(D)D
named clamp
Lnet/minecraft/entity/attribute/EntityAttribute;clamp(D)D
-