类 SetAttributesLootFunction.Attribute

  • 封闭类:
    SetAttributesLootFunction

    static class SetAttributesLootFunction.Attribute
    extends Object
    Mappings:
    Namespace Name
    official dje$b
    intermediary net/minecraft/class_137$class_138
    named net/minecraft/loot/function/SetAttributesLootFunction$Attribute
    • 字段详细资料

      • name

        private final String name
        Mappings:
        Namespace Name Mixin selector
        official a Ldje$b;a:Ljava/lang/String;
        intermediary field_1107 Lnet/minecraft/class_137$class_138;field_1107:Ljava/lang/String;
        named name Lnet/minecraft/loot/function/SetAttributesLootFunction$Attribute;name:Ljava/lang/String;
      • attribute

        private final EntityAttribute attribute
        Mappings:
        Namespace Name Mixin selector
        official b Ldje$b;b:Latt;
        intermediary field_1110 Lnet/minecraft/class_137$class_138;field_1110:Lnet/minecraft/class_1320;
        named attribute Lnet/minecraft/loot/function/SetAttributesLootFunction$Attribute;attribute:Lnet/minecraft/entity/attribute/EntityAttribute;
      • operation

        private final EntityAttributeModifier.Operation operation
        Mappings:
        Namespace Name Mixin selector
        official c Ldje$b;c:Latw$a;
        intermediary field_1109 Lnet/minecraft/class_137$class_138;field_1109:Lnet/minecraft/class_1322$class_1323;
        named operation Lnet/minecraft/loot/function/SetAttributesLootFunction$Attribute;operation:Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;
      • amount

        private final LootNumberProvider amount
        Mappings:
        Namespace Name Mixin selector
        official d Ldje$b;d:Ldlc;
        intermediary field_1108 Lnet/minecraft/class_137$class_138;field_1108:Lnet/minecraft/class_5658;
        named amount Lnet/minecraft/loot/function/SetAttributesLootFunction$Attribute;amount:Lnet/minecraft/loot/provider/number/LootNumberProvider;
      • id

        @Nullable
        private final @Nullable UUID id
        Mappings:
        Namespace Name Mixin selector
        official e Ldje$b;e:Ljava/util/UUID;
        intermediary field_1111 Lnet/minecraft/class_137$class_138;field_1111:Ljava/util/UUID;
        named id Lnet/minecraft/loot/function/SetAttributesLootFunction$Attribute;id:Ljava/util/UUID;
      • slots

        private final EquipmentSlot[] slots
        Mappings:
        Namespace Name Mixin selector
        official f Ldje$b;f:[Lasq;
        intermediary field_1112 Lnet/minecraft/class_137$class_138;field_1112:[Lnet/minecraft/class_1304;
        named slots Lnet/minecraft/loot/function/SetAttributesLootFunction$Attribute;slots:[Lnet/minecraft/entity/EquipmentSlot;
    • 构造器详细资料

      • Attribute

        private Attribute​(String name,
                          EntityAttribute attribute,
                          EntityAttributeModifier.Operation operation,
                          LootNumberProvider amount,
                          EquipmentSlot[] slots,
                          @Nullable
                          @Nullable UUID id)
        Mappings:
        Namespace Name Mixin selector
        official <init> Ldje$b;<init>(Ljava/lang/String;Latt;Latw$a;Ldlc;[Lasq;Ljava/util/UUID;)V
        intermediary <init> Lnet/minecraft/class_137$class_138;<init>(Ljava/lang/String;Lnet/minecraft/class_1320;Lnet/minecraft/class_1322$class_1323;Lnet/minecraft/class_5658;[Lnet/minecraft/class_1304;Ljava/util/UUID;)V
        named <init> Lnet/minecraft/loot/function/SetAttributesLootFunction$Attribute;<init>(Ljava/lang/String;Lnet/minecraft/entity/attribute/EntityAttribute;Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;Lnet/minecraft/loot/provider/number/LootNumberProvider;[Lnet/minecraft/entity/EquipmentSlot;Ljava/util/UUID;)V
    • 方法详细资料

      • serialize

        public JsonObject serialize​(JsonSerializationContext context)
        Mappings:
        Namespace Name Mixin selector
        official a Ldje$b;a(Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonObject;
        intermediary method_615 Lnet/minecraft/class_137$class_138;method_615(Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonObject;
        named serialize Lnet/minecraft/loot/function/SetAttributesLootFunction$Attribute;serialize(Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonObject;
      • deserialize

        public static SetAttributesLootFunction.Attribute deserialize​(JsonObject json,
                                                                      JsonDeserializationContext context)
        Mappings:
        Namespace Name Mixin selector
        official a Ldje$b;a(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Ldje$b;
        intermediary method_614 Lnet/minecraft/class_137$class_138;method_614(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_137$class_138;
        named deserialize Lnet/minecraft/loot/function/SetAttributesLootFunction$Attribute;deserialize(Lcom/google/gson/JsonObject;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/loot/function/SetAttributesLootFunction$Attribute;
      • getName

        private static String getName​(EntityAttributeModifier.Operation operation)
        Mappings:
        Namespace Name Mixin selector
        official a Ldje$b;a(Latw$a;)Ljava/lang/String;
        intermediary method_612 Lnet/minecraft/class_137$class_138;method_612(Lnet/minecraft/class_1322$class_1323;)Ljava/lang/String;
        named getName Lnet/minecraft/loot/function/SetAttributesLootFunction$Attribute;getName(Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;)Ljava/lang/String;
      • fromName

        private static EntityAttributeModifier.Operation fromName​(String name)
        Mappings:
        Namespace Name Mixin selector
        official a Ldje$b;a(Ljava/lang/String;)Latw$a;
        intermediary method_609 Lnet/minecraft/class_137$class_138;method_609(Ljava/lang/String;)Lnet/minecraft/class_1322$class_1323;
        named fromName Lnet/minecraft/loot/function/SetAttributesLootFunction$Attribute;fromName(Ljava/lang/String;)Lnet/minecraft/entity/attribute/EntityAttributeModifier$Operation;