Class AttributeModifier
- java.lang.Object
-
- net.minecraft.entity.ai.attributes.AttributeModifier
-
public class AttributeModifier extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AttributeModifier.Operation
-
Field Summary
Fields Modifier and Type Field Description private double
amount
private java.util.UUID
id
private static org.apache.logging.log4j.Logger
LOGGER
private java.util.function.Supplier<java.lang.String>
nameGetter
private AttributeModifier.Operation
operation
-
Constructor Summary
Constructors Constructor Description AttributeModifier(java.lang.String p_i50375_1_, double p_i50375_2_, AttributeModifier.Operation p_i50375_4_)
AttributeModifier(java.util.UUID p_i50376_1_, java.lang.String p_i50376_2_, double p_i50376_3_, AttributeModifier.Operation p_i50376_5_)
AttributeModifier(java.util.UUID p_i50377_1_, java.util.function.Supplier<java.lang.String> p_i50377_2_, double p_i50377_3_, AttributeModifier.Operation p_i50377_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object p_equals_1_)
double
getAmount()
java.util.UUID
getId()
java.lang.String
getName()
AttributeModifier.Operation
getOperation()
int
hashCode()
static AttributeModifier
load(CompoundNBT p_233800_0_)
CompoundNBT
save()
java.lang.String
toString()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
amount
private final double amount
-
operation
private final AttributeModifier.Operation operation
-
nameGetter
private final java.util.function.Supplier<java.lang.String> nameGetter
-
id
private final java.util.UUID id
-
-
Constructor Detail
-
AttributeModifier
public AttributeModifier(java.lang.String p_i50375_1_, double p_i50375_2_, AttributeModifier.Operation p_i50375_4_)
-
AttributeModifier
public AttributeModifier(java.util.UUID p_i50376_1_, java.lang.String p_i50376_2_, double p_i50376_3_, AttributeModifier.Operation p_i50376_5_)
-
AttributeModifier
public AttributeModifier(java.util.UUID p_i50377_1_, java.util.function.Supplier<java.lang.String> p_i50377_2_, double p_i50377_3_, AttributeModifier.Operation p_i50377_5_)
-
-
Method Detail
-
getId
public java.util.UUID getId()
-
getName
public java.lang.String getName()
-
getOperation
public AttributeModifier.Operation getOperation()
-
getAmount
public double getAmount()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
save
public CompoundNBT save()
-
load
@Nullable public static AttributeModifier load(CompoundNBT p_233800_0_)
-
-