Package net.minecraft.advancement
Class AdvancementRewards
java.lang.Object
net.minecraft.advancement.AdvancementRewards
public class AdvancementRewards extends Object
- Mappings:
Namespace Name official abintermediary net/minecraft/class_170named net/minecraft/advancement/AdvancementRewards
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdvancementRewards.Builder -
Field Summary
Fields Modifier and Type Field Description private intexperienceprivate CommandFunction.LazyContainerfunctionprivate Identifier[]lootstatic AdvancementRewardsNONEprivate Identifier[]recipes -
Constructor Summary
Constructors Constructor Description AdvancementRewards(int experience, Identifier[] loot, Identifier[] recipes, CommandFunction.LazyContainer function) -
Method Summary
Modifier and Type Method Description voidapply(ServerPlayerEntity player)static AdvancementRewardsfromJson(JsonObject json)JsonElementtoJson()StringtoString()
-
Field Details
-
NONE
- Mappings:
Namespace Name Mixin selector official aLab;a:Lab;intermediary field_1167Lnet/minecraft/class_170;field_1167:Lnet/minecraft/class_170;named NONELnet/minecraft/advancement/AdvancementRewards;NONE:Lnet/minecraft/advancement/AdvancementRewards;
-
experience
private final int experience- Mappings:
Namespace Name Mixin selector official bLab;b:Iintermediary field_1165Lnet/minecraft/class_170;field_1165:Inamed experienceLnet/minecraft/advancement/AdvancementRewards;experience:I
-
loot
- Mappings:
Namespace Name Mixin selector official cLab;c:[Lwb;intermediary field_1164Lnet/minecraft/class_170;field_1164:[Lnet/minecraft/class_2960;named lootLnet/minecraft/advancement/AdvancementRewards;loot:[Lnet/minecraft/util/Identifier;
-
recipes
- Mappings:
Namespace Name Mixin selector official dLab;d:[Lwb;intermediary field_1166Lnet/minecraft/class_170;field_1166:[Lnet/minecraft/class_2960;named recipesLnet/minecraft/advancement/AdvancementRewards;recipes:[Lnet/minecraft/util/Identifier;
-
function
- Mappings:
Namespace Name Mixin selector official eLab;e:Lcy$a;intermediary field_1163Lnet/minecraft/class_170;field_1163:Lnet/minecraft/class_2158$class_2159;named functionLnet/minecraft/advancement/AdvancementRewards;function:Lnet/minecraft/server/function/CommandFunction$LazyContainer;
-
-
Constructor Details
-
AdvancementRewards
public AdvancementRewards(int experience, Identifier[] loot, Identifier[] recipes, CommandFunction.LazyContainer function)- Mappings:
Namespace Name Mixin selector official <init>Lab;<init>(I[Lwb;[Lwb;Lcy$a;)Vintermediary <init>Lnet/minecraft/class_170;<init>(I[Lnet/minecraft/class_2960;[Lnet/minecraft/class_2960;Lnet/minecraft/class_2158$class_2159;)Vnamed <init>Lnet/minecraft/advancement/AdvancementRewards;<init>(I[Lnet/minecraft/util/Identifier;[Lnet/minecraft/util/Identifier;Lnet/minecraft/server/function/CommandFunction$LazyContainer;)V
-
-
Method Details
-
apply
- Mappings:
Namespace Name Mixin selector official aLab;a(Laaw;)Vintermediary method_748Lnet/minecraft/class_170;method_748(Lnet/minecraft/class_3222;)Vnamed applyLnet/minecraft/advancement/AdvancementRewards;apply(Lnet/minecraft/server/network/ServerPlayerEntity;)V
-
toString
-
toJson
- Mappings:
Namespace Name Mixin selector official bLab;b()Lcom/google/gson/JsonElement;intermediary method_747Lnet/minecraft/class_170;method_747()Lcom/google/gson/JsonElement;named toJsonLnet/minecraft/advancement/AdvancementRewards;toJson()Lcom/google/gson/JsonElement;
-
fromJson
- Throws:
JsonParseException- Mappings:
Namespace Name Mixin selector official aLab;a(Lcom/google/gson/JsonObject;)Lab;intermediary method_27912Lnet/minecraft/class_170;method_27912(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_170;named fromJsonLnet/minecraft/advancement/AdvancementRewards;fromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/advancement/AdvancementRewards;
-