Package net.minecraft.entity.attribute
Enum Class EntityAttributeModifier.Operation
java.lang.Object
java.lang.Enum<EntityAttributeModifier.Operation>
net.minecraft.entity.attribute.EntityAttributeModifier.Operation
- All Implemented Interfaces:
Serializable,Comparable<EntityAttributeModifier.Operation>,Constable
- Enclosing class:
EntityAttributeModifier
public static enum EntityAttributeModifier.Operation
extends Enum<EntityAttributeModifier.Operation>
Represents an operation which can be applied to an attribute modifier.
- Mappings:
Namespace Name official bhc$aintermediary net/minecraft/class_1322$class_1323named net/minecraft/entity/attribute/EntityAttributeModifier$Operation
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdds to the base value of an attribute.Multiplies the base value of the attribute.Multiplies the total value of the attribute. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate static final EntityAttributeModifier.Operation[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromId(int id) intgetId()Returns the enum constant of this class with the specified name.static EntityAttributeModifier.Operation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADDITION
Adds to the base value of an attribute.- Mappings:
Namespace Name Mixin selector official aLbhc$a;a:Lbhc$a;intermediary field_6328Lnet/minecraft/class_1322$class_1323;field_6328:Lnet/minecraft/class_1322$class_1323;named ADDITIONLnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;ADDITION:Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;
-
MULTIPLY_BASE
Multiplies the base value of the attribute.Is applied after addition.
- Mappings:
Namespace Name Mixin selector official bLbhc$a;b:Lbhc$a;intermediary field_6330Lnet/minecraft/class_1322$class_1323;field_6330:Lnet/minecraft/class_1322$class_1323;named MULTIPLY_BASELnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;MULTIPLY_BASE:Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;
-
MULTIPLY_TOTAL
Multiplies the total value of the attribute.The total value is equal to the sum of all additions and base multiplications applied by an attribute modifier.
- Mappings:
Namespace Name Mixin selector official cLbhc$a;c:Lbhc$a;intermediary field_6331Lnet/minecraft/class_1322$class_1323;field_6331:Lnet/minecraft/class_1322$class_1323;named MULTIPLY_TOTALLnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;MULTIPLY_TOTAL:Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;
-
-
Field Details
-
VALUES
- Mappings:
Namespace Name Mixin selector official dLbhc$a;d:[Lbhc$a;intermediary field_6332Lnet/minecraft/class_1322$class_1323;field_6332:[Lnet/minecraft/class_1322$class_1323;named VALUESLnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;VALUES:[Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official eLbhc$a;e:Iintermediary field_6329Lnet/minecraft/class_1322$class_1323;field_6329:Inamed idLnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;id:I
-
-
Constructor Details
-
Operation
private Operation(int id) - Mappings:
Namespace Name Mixin selector official <init>Lbhc$a;<init>(Ljava/lang/String;II)Vintermediary <init>Lnet/minecraft/class_1322$class_1323;<init>(Ljava/lang/String;II)Vnamed <init>Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;<init>(Ljava/lang/String;II)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official aLbhc$a;a()Iintermediary method_6191Lnet/minecraft/class_1322$class_1323;method_6191()Inamed getIdLnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;getId()I
-
fromId
- Mappings:
Namespace Name Mixin selector official aLbhc$a;a(I)Lbhc$a;intermediary method_6190Lnet/minecraft/class_1322$class_1323;method_6190(I)Lnet/minecraft/class_1322$class_1323;named fromIdLnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;fromId(I)Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;
-