Class EntityAttributeModifier

java.lang.Object
net.minecraft.entity.attribute.EntityAttributeModifier

public class EntityAttributeModifier extends Object
Mappings:
Namespace Name
official axz
intermediary net/minecraft/class_1322
named net/minecraft/entity/attribute/EntityAttributeModifier
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Laxz;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_23712 Lnet/minecraft/class_1322;field_23712:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/entity/attribute/EntityAttributeModifier;LOGGER:Lorg/apache/logging/log4j/Logger;
    • value

      private final double value
      Mappings:
      Namespace Name Mixin selector
      official b Laxz;b:D
      intermediary field_6323 Lnet/minecraft/class_1322;field_6323:D
      named value Lnet/minecraft/entity/attribute/EntityAttributeModifier;value:D
    • operation

      private final EntityAttributeModifier.Operation operation
      Mappings:
      Namespace Name Mixin selector
      official c Laxz;c:Laxz$a;
      intermediary field_6324 Lnet/minecraft/class_1322;field_6324:Lnet/minecraft/class_1322$class_1323;
      named operation Lnet/minecraft/entity/attribute/EntityAttributeModifier;operation:Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;
    • nameGetter

      private final Supplier<String> nameGetter
      Mappings:
      Namespace Name Mixin selector
      official d Laxz;d:Ljava/util/function/Supplier;
      intermediary field_6326 Lnet/minecraft/class_1322;field_6326:Ljava/util/function/Supplier;
      named nameGetter Lnet/minecraft/entity/attribute/EntityAttributeModifier;nameGetter:Ljava/util/function/Supplier;
    • uuid

      private final UUID uuid
      Mappings:
      Namespace Name Mixin selector
      official e Laxz;e:Ljava/util/UUID;
      intermediary field_6327 Lnet/minecraft/class_1322;field_6327:Ljava/util/UUID;
      named uuid Lnet/minecraft/entity/attribute/EntityAttributeModifier;uuid:Ljava/util/UUID;
  • Constructor Details

    • EntityAttributeModifier

      public EntityAttributeModifier(String name, double value, EntityAttributeModifier.Operation operation)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxz;<init>(Ljava/lang/String;DLaxz$a;)V
      intermediary <init> Lnet/minecraft/class_1322;<init>(Ljava/lang/String;DLnet/minecraft/class_1322$class_1323;)V
      named <init> Lnet/minecraft/entity/attribute/EntityAttributeModifier;<init>(Ljava/lang/String;DLnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;)V
    • EntityAttributeModifier

      public EntityAttributeModifier(UUID uuid, String name, double value, EntityAttributeModifier.Operation operation)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxz;<init>(Ljava/util/UUID;Ljava/lang/String;DLaxz$a;)V
      intermediary <init> Lnet/minecraft/class_1322;<init>(Ljava/util/UUID;Ljava/lang/String;DLnet/minecraft/class_1322$class_1323;)V
      named <init> Lnet/minecraft/entity/attribute/EntityAttributeModifier;<init>(Ljava/util/UUID;Ljava/lang/String;DLnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;)V
    • EntityAttributeModifier

      public EntityAttributeModifier(UUID uuid, Supplier<String> nameGetter, double value, EntityAttributeModifier.Operation operation)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxz;<init>(Ljava/util/UUID;Ljava/util/function/Supplier;DLaxz$a;)V
      intermediary <init> Lnet/minecraft/class_1322;<init>(Ljava/util/UUID;Ljava/util/function/Supplier;DLnet/minecraft/class_1322$class_1323;)V
      named <init> Lnet/minecraft/entity/attribute/EntityAttributeModifier;<init>(Ljava/util/UUID;Ljava/util/function/Supplier;DLnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;)V
  • Method Details

    • getId

      public UUID getId()
      Mappings:
      Namespace Name Mixin selector
      official a Laxz;a()Ljava/util/UUID;
      intermediary method_6189 Lnet/minecraft/class_1322;method_6189()Ljava/util/UUID;
      named getId Lnet/minecraft/entity/attribute/EntityAttributeModifier;getId()Ljava/util/UUID;
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official b Laxz;b()Ljava/lang/String;
      intermediary method_6185 Lnet/minecraft/class_1322;method_6185()Ljava/lang/String;
      named getName Lnet/minecraft/entity/attribute/EntityAttributeModifier;getName()Ljava/lang/String;
    • getOperation

      public EntityAttributeModifier.Operation getOperation()
      Mappings:
      Namespace Name Mixin selector
      official c Laxz;c()Laxz$a;
      intermediary method_6182 Lnet/minecraft/class_1322;method_6182()Lnet/minecraft/class_1322$class_1323;
      named getOperation Lnet/minecraft/entity/attribute/EntityAttributeModifier;getOperation()Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;
    • getValue

      public double getValue()
      Mappings:
      Namespace Name Mixin selector
      official d Laxz;d()D
      intermediary method_6186 Lnet/minecraft/class_1322;method_6186()D
      named getValue Lnet/minecraft/entity/attribute/EntityAttributeModifier;getValue()D
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Laxz;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1322;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/entity/attribute/EntityAttributeModifier;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toNbt

      public NbtCompound toNbt()
      Mappings:
      Namespace Name Mixin selector
      official e Laxz;e()Lob;
      intermediary method_26860 Lnet/minecraft/class_1322;method_26860()Lnet/minecraft/class_2487;
      named toNbt Lnet/minecraft/entity/attribute/EntityAttributeModifier;toNbt()Lnet/minecraft/nbt/NbtCompound;
    • fromNbt

      Mappings:
      Namespace Name Mixin selector
      official a Laxz;a(Lob;)Laxz;
      intermediary method_26859 Lnet/minecraft/class_1322;method_26859(Lnet/minecraft/class_2487;)Lnet/minecraft/class_1322;
      named fromNbt Lnet/minecraft/entity/attribute/EntityAttributeModifier;fromNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/entity/attribute/EntityAttributeModifier;