枚举 EntityAttributeModifier.Operation

    • 枚举常量详细资料

      • ADDITION

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

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

        Is applied after addition.

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

        public static final 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 c Latw$a;c:Latw$a;
        intermediary field_6331 Lnet/minecraft/class_1322$class_1323;field_6331:Lnet/minecraft/class_1322$class_1323;
        named MULTIPLY_TOTAL Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;MULTIPLY_TOTAL:Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;
    • 字段详细资料

      • VALUES

        private static final EntityAttributeModifier.Operation[] VALUES
        Mappings:
        Namespace Name Mixin selector
        official d Latw$a;d:[Latw$a;
        intermediary field_6332 Lnet/minecraft/class_1322$class_1323;field_6332:[Lnet/minecraft/class_1322$class_1323;
        named VALUES Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;VALUES:[Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;
      • id

        private final int id
        Mappings:
        Namespace Name Mixin selector
        official e Latw$a;e:I
        intermediary field_6329 Lnet/minecraft/class_1322$class_1323;field_6329:I
        named id Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;id:I
    • 构造器详细资料

      • Operation

        private Operation​(int id)
        Mappings:
        Namespace Name Mixin selector
        official <init> Latw$a;<init>(Ljava/lang/String;II)V
        intermediary <init> Lnet/minecraft/class_1322$class_1323;<init>(Ljava/lang/String;II)V
        named <init> Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;<init>(Ljava/lang/String;II)V
    • 方法详细资料

      • values

        public static EntityAttributeModifier.Operation[] values()
        按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:
        for (EntityAttributeModifier.Operation c : EntityAttributeModifier.Operation.values())
            System.out.println(c);
        
        返回:
        按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
      • valueOf

        public static EntityAttributeModifier.Operation valueOf​(String name)
        返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
        参数:
        name - 要返回的枚举常量的名称。
        返回:
        返回带有指定名称的枚举常量
        抛出:
        IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
        NullPointerException - 如果参数为空值
      • getId

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

        public static EntityAttributeModifier.Operation fromId​(int id)
        Mappings:
        Namespace Name Mixin selector
        official a Latw$a;a(I)Latw$a;
        intermediary method_6190 Lnet/minecraft/class_1322$class_1323;method_6190(I)Lnet/minecraft/class_1322$class_1323;
        named fromId Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;fromId(I)Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;