Package net.minecraft.entity.attribute
Class EntityAttributeModifier
java.lang.Object
net.minecraft.entity.attribute.EntityAttributeModifier
public class EntityAttributeModifier extends Object
-
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
-
value
private final double value -
operation
-
nameGetter
-
uuid
-
-
Constructor Details
-
EntityAttributeModifier
public EntityAttributeModifier(String name, double value, EntityAttributeModifier.Operation operation) -
EntityAttributeModifier
public EntityAttributeModifier(UUID uuid, String name, double value, EntityAttributeModifier.Operation operation) -
EntityAttributeModifier
public EntityAttributeModifier(UUID uuid, Supplier<String> nameGetter, double value, EntityAttributeModifier.Operation operation)
-
-
Method Details