Package net.minecraft.entity.attribute
Class EntityAttributeModifier
java.lang.Object
net.minecraft.entity.attribute.EntityAttributeModifier
public class EntityAttributeModifier extends Object
- Mappings:
Namespace Name official asg
intermediary net/minecraft/class_1322
named net/minecraft/entity/attribute/EntityAttributeModifier
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityAttributeModifier.Operation
Represents an operation which can be applied to an attribute modifier. -
Field Summary
Fields Modifier and Type Field Description private static Logger
LOGGER
private Supplier<String>
nameGetter
private EntityAttributeModifier.Operation
operation
private UUID
uuid
private double
value
-
Constructor Summary
Constructors Constructor Description EntityAttributeModifier(String name, double value, EntityAttributeModifier.Operation operation)
EntityAttributeModifier(UUID uuid, String name, double value, EntityAttributeModifier.Operation operation)
EntityAttributeModifier(UUID uuid, Supplier<String> nameGetter, double value, EntityAttributeModifier.Operation operation)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
static EntityAttributeModifier
fromTag(CompoundTag tag)
UUID
getId()
String
getName()
EntityAttributeModifier.Operation
getOperation()
double
getValue()
int
hashCode()
String
toString()
CompoundTag
toTag()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lasg;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
Lasg;b:D
intermediary field_6323
Lnet/minecraft/class_1322;field_6323:D
named value
Lnet/minecraft/entity/attribute/EntityAttributeModifier;value:D
-
operation
- Mappings:
Namespace Name Mixin selector official c
Lasg;c:Lasg$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
- Mappings:
Namespace Name Mixin selector official d
Lasg;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
- Mappings:
Namespace Name Mixin selector official e
Lasg;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>
Lasg;<init>(Ljava/lang/String;DLasg$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>
Lasg;<init>(Ljava/util/UUID;Ljava/lang/String;DLasg$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>
Lasg;<init>(Ljava/util/UUID;Ljava/util/function/Supplier;DLasg$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
- Mappings:
Namespace Name Mixin selector official a
Lasg;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
- Mappings:
Namespace Name Mixin selector official b
Lasg;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
- Mappings:
Namespace Name Mixin selector official c
Lasg;c()Lasg$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
Lasg;d()D
intermediary method_6186
Lnet/minecraft/class_1322;method_6186()D
named getValue
Lnet/minecraft/entity/attribute/EntityAttributeModifier;getValue()D
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classObject
- Mappings:
Namespace Name Mixin selector official toString
Lasg;toString()Ljava/lang/String;
intermediary toString
Lnet/minecraft/class_1322;toString()Ljava/lang/String;
named toString
Lnet/minecraft/entity/attribute/EntityAttributeModifier;toString()Ljava/lang/String;
-
toTag
- Mappings:
Namespace Name Mixin selector official e
Lasg;e()Lmq;
intermediary method_26860
Lnet/minecraft/class_1322;method_26860()Lnet/minecraft/class_2487;
named toTag
Lnet/minecraft/entity/attribute/EntityAttributeModifier;toTag()Lnet/minecraft/nbt/CompoundTag;
-
fromTag
- Mappings:
Namespace Name Mixin selector official a
Lasg;a(Lmq;)Lasg;
intermediary method_26859
Lnet/minecraft/class_1322;method_26859(Lnet/minecraft/class_2487;)Lnet/minecraft/class_1322;
named fromTag
Lnet/minecraft/entity/attribute/EntityAttributeModifier;fromTag(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/entity/attribute/EntityAttributeModifier;
-