类 EntityAttribute

  • 直接已知子类:
    ClampedEntityAttribute

    public class EntityAttribute
    extends Object
    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
    official att
    intermediary net/minecraft/class_1320
    named net/minecraft/entity/attribute/EntityAttribute
    • 字段详细资料

      • field_30097

        public static final int field_30097
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official a Latt;a:I
        intermediary field_30097 Lnet/minecraft/class_1320;field_30097:I
        named field_30097 Lnet/minecraft/entity/attribute/EntityAttribute;field_30097:I
      • fallback

        private final double fallback
        Mappings:
        Namespace Name Mixin selector
        official b Latt;b:D
        intermediary field_23697 Lnet/minecraft/class_1320;field_23697:D
        named fallback Lnet/minecraft/entity/attribute/EntityAttribute;fallback:D
      • tracked

        private boolean tracked
        Mappings:
        Namespace Name Mixin selector
        official c Latt;c:Z
        intermediary field_23698 Lnet/minecraft/class_1320;field_23698:Z
        named tracked Lnet/minecraft/entity/attribute/EntityAttribute;tracked:Z
      • translationKey

        private final String translationKey
        Mappings:
        Namespace Name Mixin selector
        official d Latt;d:Ljava/lang/String;
        intermediary field_23699 Lnet/minecraft/class_1320;field_23699:Ljava/lang/String;
        named translationKey Lnet/minecraft/entity/attribute/EntityAttribute;translationKey:Ljava/lang/String;
    • 构造器详细资料

      • EntityAttribute

        protected EntityAttribute​(String translationKey,
                                  double fallback)
        Mappings:
        Namespace Name Mixin selector
        official <init> Latt;<init>(Ljava/lang/String;D)V
        intermediary <init> Lnet/minecraft/class_1320;<init>(Ljava/lang/String;D)V
        named <init> Lnet/minecraft/entity/attribute/EntityAttribute;<init>(Ljava/lang/String;D)V
    • 方法详细资料

      • getDefaultValue

        public double getDefaultValue()
        Mappings:
        Namespace Name Mixin selector
        official a Latt;a()D
        intermediary method_6169 Lnet/minecraft/class_1320;method_6169()D
        named getDefaultValue Lnet/minecraft/entity/attribute/EntityAttribute;getDefaultValue()D
      • isTracked

        public boolean isTracked()
        Checks if instances of this attribute should synchronize values to clients.
        Mappings:
        Namespace Name Mixin selector
        official b Latt;b()Z
        intermediary method_6168 Lnet/minecraft/class_1320;method_6168()Z
        named isTracked Lnet/minecraft/entity/attribute/EntityAttribute;isTracked()Z
      • setTracked

        public EntityAttribute setTracked​(boolean tracked)
        Sets all instances of this attribute to synchronize their values to clients.
        Mappings:
        Namespace Name Mixin selector
        official a Latt;a(Z)Latt;
        intermediary method_26829 Lnet/minecraft/class_1320;method_26829(Z)Lnet/minecraft/class_1320;
        named setTracked Lnet/minecraft/entity/attribute/EntityAttribute;setTracked(Z)Lnet/minecraft/entity/attribute/EntityAttribute;
      • clamp

        public double clamp​(double value)
        Mappings:
        Namespace Name Mixin selector
        official a Latt;a(D)D
        intermediary method_6165 Lnet/minecraft/class_1320;method_6165(D)D
        named clamp Lnet/minecraft/entity/attribute/EntityAttribute;clamp(D)D
      • getTranslationKey

        public String getTranslationKey()
        Mappings:
        Namespace Name Mixin selector
        official c Latt;c()Ljava/lang/String;
        intermediary method_26830 Lnet/minecraft/class_1320;method_26830()Ljava/lang/String;
        named getTranslationKey Lnet/minecraft/entity/attribute/EntityAttribute;getTranslationKey()Ljava/lang/String;