Enum AttributeModifier.Operation
- java.lang.Object
-
- java.lang.Enum<AttributeModifier.Operation>
-
- net.minecraft.entity.ai.attributes.AttributeModifier.Operation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AttributeModifier.Operation>
- Enclosing class:
- AttributeModifier
public static enum AttributeModifier.Operation extends java.lang.Enum<AttributeModifier.Operation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDITION
MULTIPLY_BASE
MULTIPLY_TOTAL
-
Field Summary
Fields Modifier and Type Field Description private static AttributeModifier.Operation[]
OPERATIONS
private int
value
-
Constructor Summary
Constructors Modifier Constructor Description private
Operation(int p_i50050_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttributeModifier.Operation
fromValue(int p_220372_0_)
int
toValue()
static AttributeModifier.Operation
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
ADDITION
public static final AttributeModifier.Operation ADDITION
-
MULTIPLY_BASE
public static final AttributeModifier.Operation MULTIPLY_BASE
-
MULTIPLY_TOTAL
public static final AttributeModifier.Operation MULTIPLY_TOTAL
-
-
Field Detail
-
OPERATIONS
private static final AttributeModifier.Operation[] OPERATIONS
-
value
private final int value
-
-
Method Detail
-
values
public static AttributeModifier.Operation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AttributeModifier.Operation c : AttributeModifier.Operation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AttributeModifier.Operation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toValue
public int toValue()
-
fromValue
public static AttributeModifier.Operation fromValue(int p_220372_0_)
-
-