public static enum EntityAttributeModifier.Operation extends Enum<EntityAttributeModifier.Operation>
Enum Constant and Description |
---|
ADDITION
Adds to the base value of an attribute.
|
MULTIPLY_BASE
Multiplies the base value of the attribute.
|
MULTIPLY_TOTAL
Multiplies the total value of the attribute.
|
Modifier and Type | Field and Description |
---|---|
private int |
id |
private static EntityAttributeModifier.Operation[] |
VALUES |
Modifier and Type | Method and Description |
---|---|
static EntityAttributeModifier.Operation |
fromId(int id) |
int |
getId() |
static EntityAttributeModifier.Operation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntityAttributeModifier.Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityAttributeModifier.Operation ADDITION
public static final EntityAttributeModifier.Operation MULTIPLY_BASE
Is applied after addition.
public static final EntityAttributeModifier.Operation MULTIPLY_TOTAL
The total value is equal to the sum of all additions and base multiplications applied by an attribute modifier.
private static final EntityAttributeModifier.Operation[] VALUES
private final int id
public static EntityAttributeModifier.Operation[] values()
for (EntityAttributeModifier.Operation c : EntityAttributeModifier.Operation.values()) System.out.println(c);
public static EntityAttributeModifier.Operation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getId()
public static EntityAttributeModifier.Operation fromId(int id)