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, StringIdentifiable
Enclosing class:
EntityAttributeModifier

public static enum EntityAttributeModifier.Operation extends Enum<EntityAttributeModifier.Operation> implements StringIdentifiable
Represents an operation which can be applied to an attribute modifier.
Mappings:
Namespace Name
named net/minecraft/entity/attribute/EntityAttributeModifier$Operation
intermediary net/minecraft/class_1322$class_1323
official bux$a
  • Enum Constant Details

    • ADD_VALUE

      public static final EntityAttributeModifier.Operation ADD_VALUE
      Adds to the base value of an attribute.
      Mappings:
      Namespace Name Mixin selector
      named ADD_VALUE Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;ADD_VALUE:Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;
      intermediary field_6328 Lnet/minecraft/class_1322$class_1323;field_6328:Lnet/minecraft/class_1322$class_1323;
      official a Lbux$a;a:Lbux$a;
    • ADD_MULTIPLIED_BASE

      public static final EntityAttributeModifier.Operation ADD_MULTIPLIED_BASE
      Multiplies the base value of the attribute.

      Is applied after addition.

      Mappings:
      Namespace Name Mixin selector
      named ADD_MULTIPLIED_BASE Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;ADD_MULTIPLIED_BASE:Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;
      intermediary field_6330 Lnet/minecraft/class_1322$class_1323;field_6330:Lnet/minecraft/class_1322$class_1323;
      official b Lbux$a;b:Lbux$a;
    • ADD_MULTIPLIED_TOTAL

      public static final EntityAttributeModifier.Operation ADD_MULTIPLIED_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
      named ADD_MULTIPLIED_TOTAL Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;ADD_MULTIPLIED_TOTAL:Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;
      intermediary field_6331 Lnet/minecraft/class_1322$class_1323;field_6331:Lnet/minecraft/class_1322$class_1323;
      official c Lbux$a;c:Lbux$a;
  • Field Details

    • ID_TO_VALUE

      public static final IntFunction<EntityAttributeModifier.Operation> ID_TO_VALUE
      Mappings:
      Namespace Name Mixin selector
      named ID_TO_VALUE Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;ID_TO_VALUE:Ljava/util/function/IntFunction;
      intermediary field_48325 Lnet/minecraft/class_1322$class_1323;field_48325:Ljava/util/function/IntFunction;
      official d Lbux$a;d:Ljava/util/function/IntFunction;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,EntityAttributeModifier.Operation> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48326 Lnet/minecraft/class_1322$class_1323;field_48326:Lnet/minecraft/class_9139;
      official e Lbux$a;e:Lzn;
    • CODEC

      public static final com.mojang.serialization.Codec<EntityAttributeModifier.Operation> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45742 Lnet/minecraft/class_1322$class_1323;field_45742:Lcom/mojang/serialization/Codec;
      official f Lbux$a;f:Lcom/mojang/serialization/Codec;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;name:Ljava/lang/String;
      intermediary field_45743 Lnet/minecraft/class_1322$class_1323;field_45743:Ljava/lang/String;
      official g Lbux$a;g:Ljava/lang/String;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;id:I
      intermediary field_6329 Lnet/minecraft/class_1322$class_1323;field_6329:I
      official h Lbux$a;h:I
  • Constructor Details

    • Operation

      private Operation(String name, int id)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;<init>(Ljava/lang/String;ILjava/lang/String;I)V
      intermediary <init> Lnet/minecraft/class_1322$class_1323;<init>(Ljava/lang/String;ILjava/lang/String;I)V
      official <init> Lbux$a;<init>(Ljava/lang/String;ILjava/lang/String;I)V
  • Method Details

    • values

      public static EntityAttributeModifier.Operation[] 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

      public static EntityAttributeModifier.Operation valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getId

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;getId()I
      intermediary method_56082 Lnet/minecraft/class_1322$class_1323;method_56082()I
      official a Lbux$a;a()I
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lazu;c()Ljava/lang/String;