public class EntityAttributeModifier extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EntityAttributeModifier.Operation |
Modifier and Type | Field and Description |
---|---|
private double |
amount |
private static Logger |
LOGGER |
private Supplier<String> |
nameGetter |
private EntityAttributeModifier.Operation |
operation |
private UUID |
uuid |
Constructor and Description |
---|
EntityAttributeModifier(String name,
double amount,
EntityAttributeModifier.Operation operation) |
EntityAttributeModifier(UUID uuid,
String name,
double amount,
EntityAttributeModifier.Operation operation) |
EntityAttributeModifier(UUID uuid,
Supplier<String> nameGetter,
double amount,
EntityAttributeModifier.Operation operation) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static EntityAttributeModifier |
fromTag(CompoundTag tag) |
double |
getAmount() |
UUID |
getId() |
String |
getName() |
EntityAttributeModifier.Operation |
getOperation() |
int |
hashCode() |
String |
toString() |
CompoundTag |
toTag() |
private static final Logger LOGGER
private final double amount
private final EntityAttributeModifier.Operation operation
private final UUID uuid
public EntityAttributeModifier(String name, double amount, EntityAttributeModifier.Operation operation)
public EntityAttributeModifier(UUID uuid, String name, double amount, EntityAttributeModifier.Operation operation)
public EntityAttributeModifier(UUID uuid, Supplier<String> nameGetter, double amount, EntityAttributeModifier.Operation operation)
public UUID getId()
public String getName()
public EntityAttributeModifier.Operation getOperation()
public double getAmount()
public CompoundTag toTag()
@Nullable public static EntityAttributeModifier fromTag(CompoundTag tag)