public static enum EntityAttributeModifier.Operation extends Enum<EntityAttributeModifier.Operation>
Enum Constant and Description |
---|
ADDITION |
MULTIPLY_BASE |
MULTIPLY_TOTAL |
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
public static final EntityAttributeModifier.Operation MULTIPLY_TOTAL
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)