类 AdvancementRewards


  • public class AdvancementRewards
    extends Object
    Mappings:
    Namespace Name
    official ag
    intermediary net/minecraft/class_170
    named net/minecraft/advancement/AdvancementRewards
    • 字段详细资料

      • NONE

        public static final AdvancementRewards NONE
        Mappings:
        Namespace Name Mixin selector
        official a Lag;a:Lag;
        intermediary field_1167 Lnet/minecraft/class_170;field_1167:Lnet/minecraft/class_170;
        named NONE Lnet/minecraft/advancement/AdvancementRewards;NONE:Lnet/minecraft/advancement/AdvancementRewards;
      • experience

        private final int experience
        Mappings:
        Namespace Name Mixin selector
        official b Lag;b:I
        intermediary field_1165 Lnet/minecraft/class_170;field_1165:I
        named experience Lnet/minecraft/advancement/AdvancementRewards;experience:I
      • loot

        private final Identifier[] loot
        Mappings:
        Namespace Name Mixin selector
        official c Lag;c:[Lwp;
        intermediary field_1164 Lnet/minecraft/class_170;field_1164:[Lnet/minecraft/class_2960;
        named loot Lnet/minecraft/advancement/AdvancementRewards;loot:[Lnet/minecraft/util/Identifier;
      • recipes

        private final Identifier[] recipes
        Mappings:
        Namespace Name Mixin selector
        official d Lag;d:[Lwp;
        intermediary field_1166 Lnet/minecraft/class_170;field_1166:[Lnet/minecraft/class_2960;
        named recipes Lnet/minecraft/advancement/AdvancementRewards;recipes:[Lnet/minecraft/util/Identifier;
      • function

        private final CommandFunction.LazyContainer function
        Mappings:
        Namespace Name Mixin selector
        official e Lag;e:Ldd$a;
        intermediary field_1163 Lnet/minecraft/class_170;field_1163:Lnet/minecraft/class_2158$class_2159;
        named function Lnet/minecraft/advancement/AdvancementRewards;function:Lnet/minecraft/server/function/CommandFunction$LazyContainer;
    • 构造器详细资料

      • AdvancementRewards

        public AdvancementRewards​(int experience,
                                  Identifier[] loot,
                                  Identifier[] recipes,
                                  CommandFunction.LazyContainer function)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lag;<init>(I[Lwp;[Lwp;Ldd$a;)V
        intermediary <init> Lnet/minecraft/class_170;<init>(I[Lnet/minecraft/class_2960;[Lnet/minecraft/class_2960;Lnet/minecraft/class_2158$class_2159;)V
        named <init> Lnet/minecraft/advancement/AdvancementRewards;<init>(I[Lnet/minecraft/util/Identifier;[Lnet/minecraft/util/Identifier;Lnet/minecraft/server/function/CommandFunction$LazyContainer;)V
    • 方法详细资料

      • getRecipes

        public Identifier[] getRecipes()
        Mappings:
        Namespace Name Mixin selector
        official a Lag;a()[Lwp;
        intermediary method_34898 Lnet/minecraft/class_170;method_34898()[Lnet/minecraft/class_2960;
        named getRecipes Lnet/minecraft/advancement/AdvancementRewards;getRecipes()[Lnet/minecraft/util/Identifier;
      • apply

        public void apply​(ServerPlayerEntity player)
        Mappings:
        Namespace Name Mixin selector
        official a Lag;a(Labk;)V
        intermediary method_748 Lnet/minecraft/class_170;method_748(Lnet/minecraft/class_3222;)V
        named apply Lnet/minecraft/advancement/AdvancementRewards;apply(Lnet/minecraft/server/network/ServerPlayerEntity;)V
      • toString

        public String toString()
        覆盖:
        toString 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official toString Lag;toString()Ljava/lang/String;
        intermediary toString Lnet/minecraft/class_170;toString()Ljava/lang/String;
        named toString Lnet/minecraft/advancement/AdvancementRewards;toString()Ljava/lang/String;
      • toJson

        public JsonElement toJson()
        Mappings:
        Namespace Name Mixin selector
        official b Lag;b()Lcom/google/gson/JsonElement;
        intermediary method_747 Lnet/minecraft/class_170;method_747()Lcom/google/gson/JsonElement;
        named toJson Lnet/minecraft/advancement/AdvancementRewards;toJson()Lcom/google/gson/JsonElement;
      • fromJson

        public static AdvancementRewards fromJson​(JsonObject json)
                                           throws JsonParseException
        抛出:
        JsonParseException
        Mappings:
        Namespace Name Mixin selector
        official a Lag;a(Lcom/google/gson/JsonObject;)Lag;
        intermediary method_27912 Lnet/minecraft/class_170;method_27912(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_170;
        named fromJson Lnet/minecraft/advancement/AdvancementRewards;fromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/advancement/AdvancementRewards;