Package net.minecraft.entity.attribute
Class ClampedEntityAttribute
java.lang.Object
net.minecraft.entity.attribute.EntityAttribute
net.minecraft.entity.attribute.ClampedEntityAttribute
Represents a type of attribute with minimum and maximum value limits.
- Mappings:
Namespace Name named net/minecraft/entity/attribute/ClampedEntityAttribute
intermediary net/minecraft/class_1329
official bvb
-
Field Summary
Fields inherited from class net.minecraft.entity.attribute.EntityAttribute
field_30097
-
Constructor Summary
ConstructorDescriptionClampedEntityAttribute
(String translationKey, double fallback, double min, double max) -
Method Summary
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 named minValue
Lnet/minecraft/entity/attribute/ClampedEntityAttribute;minValue:D
intermediary field_6353
Lnet/minecraft/class_1329;field_6353:D
official b
Lbvb;b:D
-
maxValue
private final double maxValue- Mappings:
Namespace Name Mixin selector named maxValue
Lnet/minecraft/entity/attribute/ClampedEntityAttribute;maxValue:D
intermediary field_6351
Lnet/minecraft/class_1329;field_6351:D
official c
Lbvb;c:D
-
-
Constructor Details
-
ClampedEntityAttribute
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/attribute/ClampedEntityAttribute;<init>(Ljava/lang/String;DDD)V
intermediary <init>
Lnet/minecraft/class_1329;<init>(Ljava/lang/String;DDD)V
official <init>
Lbvb;<init>(Ljava/lang/String;DDD)V
-
-
Method Details
-
getMinValue
public double getMinValue()- Mappings:
Namespace Name Mixin selector named getMinValue
Lnet/minecraft/entity/attribute/ClampedEntityAttribute;getMinValue()D
intermediary method_35061
Lnet/minecraft/class_1329;method_35061()D
official d
Lbvb;d()D
-
getMaxValue
public double getMaxValue()- Mappings:
Namespace Name Mixin selector named getMaxValue
Lnet/minecraft/entity/attribute/ClampedEntityAttribute;getMaxValue()D
intermediary method_35062
Lnet/minecraft/class_1329;method_35062()D
official e
Lbvb;e()D
-
clamp
public double clamp(double value) - Overrides:
clamp
in classEntityAttribute
- Mappings:
Namespace Name Mixin selector named clamp
Lnet/minecraft/entity/attribute/EntityAttribute;clamp(D)D
intermediary method_6165
Lnet/minecraft/class_1320;method_6165(D)D
official a
Lbuu;a(D)D
-