Package net.minecraft.entity.attribute
Class EntityAttribute
java.lang.Object
net.minecraft.entity.attribute.EntityAttribute
- Direct Known Subclasses:
ClampedEntityAttribute
Represents a type of double-valued attribute that a living entity may have.
An attribute is a tracked double value stored on an entity. An attribute has a default value on which attribute modifiers operate.
- Mappings:
Namespace Name named net/minecraft/entity/attribute/EntityAttribute
intermediary net/minecraft/class_1320
official buu
-
Field Summary
Modifier and TypeFieldDescriptionprivate final double
static final int
private boolean
private final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
clamp
(double value) double
boolean
Checks if instances of this attribute should synchronize values to clients.setTracked
(boolean tracked) Sets all instances of this attribute to synchronize their values to clients.
-
Field Details
-
field_30097
public static final int field_30097- See Also:
- Mappings:
Namespace Name Mixin selector named field_30097
Lnet/minecraft/entity/attribute/EntityAttribute;field_30097:I
intermediary field_30097
Lnet/minecraft/class_1320;field_30097:I
official a
Lbuu;a:I
-
fallback
private final double fallback- Mappings:
Namespace Name Mixin selector named fallback
Lnet/minecraft/entity/attribute/EntityAttribute;fallback:D
intermediary field_23697
Lnet/minecraft/class_1320;field_23697:D
official b
Lbuu;b:D
-
tracked
private boolean tracked- Mappings:
Namespace Name Mixin selector named tracked
Lnet/minecraft/entity/attribute/EntityAttribute;tracked:Z
intermediary field_23698
Lnet/minecraft/class_1320;field_23698:Z
official c
Lbuu;c:Z
-
translationKey
- Mappings:
Namespace Name Mixin selector named translationKey
Lnet/minecraft/entity/attribute/EntityAttribute;translationKey:Ljava/lang/String;
intermediary field_23699
Lnet/minecraft/class_1320;field_23699:Ljava/lang/String;
official d
Lbuu;d:Ljava/lang/String;
-
-
Constructor Details
-
EntityAttribute
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/attribute/EntityAttribute;<init>(Ljava/lang/String;D)V
intermediary <init>
Lnet/minecraft/class_1320;<init>(Ljava/lang/String;D)V
official <init>
Lbuu;<init>(Ljava/lang/String;D)V
-
-
Method Details
-
getDefaultValue
public double getDefaultValue()- Mappings:
Namespace Name Mixin selector named getDefaultValue
Lnet/minecraft/entity/attribute/EntityAttribute;getDefaultValue()D
intermediary method_6169
Lnet/minecraft/class_1320;method_6169()D
official a
Lbuu;a()D
-
isTracked
public boolean isTracked()Checks if instances of this attribute should synchronize values to clients.- Mappings:
Namespace Name Mixin selector named isTracked
Lnet/minecraft/entity/attribute/EntityAttribute;isTracked()Z
intermediary method_6168
Lnet/minecraft/class_1320;method_6168()Z
official b
Lbuu;b()Z
-
setTracked
Sets all instances of this attribute to synchronize their values to clients.- Mappings:
Namespace Name Mixin selector named setTracked
Lnet/minecraft/entity/attribute/EntityAttribute;setTracked(Z)Lnet/minecraft/entity/attribute/EntityAttribute;
intermediary method_26829
Lnet/minecraft/class_1320;method_26829(Z)Lnet/minecraft/class_1320;
official a
Lbuu;a(Z)Lbuu;
-
clamp
public double clamp(double value) - 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
-
getTranslationKey
- Mappings:
Namespace Name Mixin selector named getTranslationKey
Lnet/minecraft/entity/attribute/EntityAttribute;getTranslationKey()Ljava/lang/String;
intermediary method_26830
Lnet/minecraft/class_1320;method_26830()Ljava/lang/String;
official c
Lbuu;c()Ljava/lang/String;
-