Package net.minecraft.entity.attribute
Class EntityAttributeModifier
java.lang.Object
net.minecraft.entity.attribute.EntityAttributeModifier
- Mappings:
Namespace Name official bnp
intermediary net/minecraft/class_1322
named net/minecraft/entity/attribute/EntityAttributeModifier
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Represents an operation which can be applied to an attribute modifier. -
Field Summary
-
Constructor Summary
ConstructorDescriptionEntityAttributeModifier
(String name, double value, EntityAttributeModifier.Operation operation) EntityAttributeModifier
(UUID uuid, String name, double value, EntityAttributeModifier.Operation operation) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static @Nullable EntityAttributeModifier
fromNbt
(NbtCompound nbt) getId()
double
getValue()
int
hashCode()
toNbt()
toString()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official b
Lbnp;b:Lorg/slf4j/Logger;
intermediary field_23712
Lnet/minecraft/class_1322;field_23712:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/entity/attribute/EntityAttributeModifier;LOGGER:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lbnp;a:Lcom/mojang/serialization/Codec;
intermediary field_46247
Lnet/minecraft/class_1322;field_46247:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/entity/attribute/EntityAttributeModifier;CODEC:Lcom/mojang/serialization/Codec;
-
value
private final double value- Mappings:
Namespace Name Mixin selector official c
Lbnp;c: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 d
Lbnp;d:Lbnp$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;
-
name
- Mappings:
Namespace Name Mixin selector official e
Lbnp;e:Ljava/lang/String;
intermediary field_46248
Lnet/minecraft/class_1322;field_46248:Ljava/lang/String;
named name
Lnet/minecraft/entity/attribute/EntityAttributeModifier;name:Ljava/lang/String;
-
uuid
- Mappings:
Namespace Name Mixin selector official f
Lbnp;f: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>
Lbnp;<init>(Ljava/lang/String;DLbnp$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>
Lbnp;<init>(Ljava/util/UUID;Ljava/lang/String;DLbnp$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
-
-
Method Details
-
getId
- Mappings:
Namespace Name Mixin selector official a
Lbnp;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;
-
getOperation
- Mappings:
Namespace Name Mixin selector official b
Lbnp;b()Lbnp$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 c
Lbnp;c()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
-
toNbt
- Mappings:
Namespace Name Mixin selector official d
Lbnp;d()Lsn;
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
Lbnp;a(Lsn;)Lbnp;
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;
-