Serializable
, Comparable<AttributeModifier.Operation>
public static enum AttributeModifier.Operation extends Enum<AttributeModifier.Operation>
Enum Constant | Description |
---|---|
ADD_NUMBER |
Adds (or subtracts) the specified amount to the base value.
|
ADD_SCALAR |
Adds this scalar of amount to the base value.
|
MULTIPLY_SCALAR_1 |
Multiply amount by this value, after adding 1 to it.
|
Modifier and Type | Method | Description |
---|---|---|
static AttributeModifier.Operation |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static AttributeModifier.Operation[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttributeModifier.Operation ADD_NUMBER
public static final AttributeModifier.Operation ADD_SCALAR
public static final AttributeModifier.Operation MULTIPLY_SCALAR_1
public static AttributeModifier.Operation[] values()
for (AttributeModifier.Operation c : AttributeModifier.Operation.values()) System.out.println(c);
public static AttributeModifier.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 nullCopyright © 2020. All rights reserved.