public class AttributeModifier
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AttributeModifier.Operation |
Modifier and Type | Field and Description |
---|---|
private double |
amount |
private java.util.UUID |
id |
private boolean |
isSaved |
private java.util.function.Supplier<java.lang.String> |
name |
private AttributeModifier.Operation |
operation |
Constructor and Description |
---|
AttributeModifier(java.lang.String nameIn,
double amountIn,
AttributeModifier.Operation operationIn) |
AttributeModifier(java.util.UUID uuid,
java.lang.String nameIn,
double amountIn,
AttributeModifier.Operation operationIn) |
AttributeModifier(java.util.UUID uuid,
java.util.function.Supplier<java.lang.String> nameIn,
double amountIn,
AttributeModifier.Operation operationIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object p_equals_1_) |
double |
getAmount() |
java.util.UUID |
getID() |
java.lang.String |
getName() |
AttributeModifier.Operation |
getOperation() |
int |
hashCode() |
boolean |
isSaved() |
AttributeModifier |
setSaved(boolean saved) |
java.lang.String |
toString() |
private final double amount
private final AttributeModifier.Operation operation
private final java.util.function.Supplier<java.lang.String> name
private final java.util.UUID id
private boolean isSaved
public AttributeModifier(java.lang.String nameIn, double amountIn, AttributeModifier.Operation operationIn)
public AttributeModifier(java.util.UUID uuid, java.lang.String nameIn, double amountIn, AttributeModifier.Operation operationIn)
public AttributeModifier(java.util.UUID uuid, java.util.function.Supplier<java.lang.String> nameIn, double amountIn, AttributeModifier.Operation operationIn)
public java.util.UUID getID()
public java.lang.String getName()
public AttributeModifier.Operation getOperation()
public double getAmount()
public boolean isSaved()
public AttributeModifier setSaved(boolean saved)
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object