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/EntityAttributeintermediary net/minecraft/class_1320official buu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doublestatic final intprivate booleanprivate final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleclamp(double value) doublebooleanChecks 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_30097Lnet/minecraft/entity/attribute/EntityAttribute;field_30097:Iintermediary field_30097Lnet/minecraft/class_1320;field_30097:Iofficial aLbuu;a:I
-
fallback
private final double fallback- Mappings:
Namespace Name Mixin selector named fallbackLnet/minecraft/entity/attribute/EntityAttribute;fallback:Dintermediary field_23697Lnet/minecraft/class_1320;field_23697:Dofficial bLbuu;b:D
-
tracked
private boolean tracked- Mappings:
Namespace Name Mixin selector named trackedLnet/minecraft/entity/attribute/EntityAttribute;tracked:Zintermediary field_23698Lnet/minecraft/class_1320;field_23698:Zofficial cLbuu;c:Z
-
translationKey
- Mappings:
Namespace Name Mixin selector named translationKeyLnet/minecraft/entity/attribute/EntityAttribute;translationKey:Ljava/lang/String;intermediary field_23699Lnet/minecraft/class_1320;field_23699:Ljava/lang/String;official dLbuu;d:Ljava/lang/String;
-
-
Constructor Details
-
EntityAttribute
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/attribute/EntityAttribute;<init>(Ljava/lang/String;D)Vintermediary <init>Lnet/minecraft/class_1320;<init>(Ljava/lang/String;D)Vofficial <init>Lbuu;<init>(Ljava/lang/String;D)V
-
-
Method Details
-
getDefaultValue
public double getDefaultValue()- Mappings:
Namespace Name Mixin selector named getDefaultValueLnet/minecraft/entity/attribute/EntityAttribute;getDefaultValue()Dintermediary method_6169Lnet/minecraft/class_1320;method_6169()Dofficial aLbuu;a()D
-
isTracked
public boolean isTracked()Checks if instances of this attribute should synchronize values to clients.- Mappings:
Namespace Name Mixin selector named isTrackedLnet/minecraft/entity/attribute/EntityAttribute;isTracked()Zintermediary method_6168Lnet/minecraft/class_1320;method_6168()Zofficial bLbuu;b()Z
-
setTracked
Sets all instances of this attribute to synchronize their values to clients.- Mappings:
Namespace Name Mixin selector named setTrackedLnet/minecraft/entity/attribute/EntityAttribute;setTracked(Z)Lnet/minecraft/entity/attribute/EntityAttribute;intermediary method_26829Lnet/minecraft/class_1320;method_26829(Z)Lnet/minecraft/class_1320;official aLbuu;a(Z)Lbuu;
-
clamp
public double clamp(double value) - Mappings:
Namespace Name Mixin selector named clampLnet/minecraft/entity/attribute/EntityAttribute;clamp(D)Dintermediary method_6165Lnet/minecraft/class_1320;method_6165(D)Dofficial aLbuu;a(D)D
-
getTranslationKey
- Mappings:
Namespace Name Mixin selector named getTranslationKeyLnet/minecraft/entity/attribute/EntityAttribute;getTranslationKey()Ljava/lang/String;intermediary method_26830Lnet/minecraft/class_1320;method_26830()Ljava/lang/String;official cLbuu;c()Ljava/lang/String;
-