Package net.minecraft.advancements
Class AdvancementRewards
java.lang.Object
net.minecraft.advancements.AdvancementRewards
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic AdvancementRewards
private int
private ResourceLocation[]
private ResourceLocation[]
-
Constructor Summary
ConstructorDescriptionAdvancementRewards(int p_9985_, ResourceLocation[] p_9986_, ResourceLocation[] p_9987_, CommandFunction.CacheableFunction p_9988_)
-
Method Summary
Modifier and TypeMethodDescriptionstatic AdvancementRewards
deserialize(com.google.gson.JsonObject p_9992_)
void
grant(ServerPlayer p_9990_)
com.google.gson.JsonElement
toString()
-
Field Details
-
EMPTY
-
experience
private final int experience -
loot
-
recipes
-
function
-
-
Constructor Details
-
AdvancementRewards
public AdvancementRewards(int p_9985_, ResourceLocation[] p_9986_, ResourceLocation[] p_9987_, CommandFunction.CacheableFunction p_9988_)
-
-
Method Details
-
getRecipes
-
grant
-
toString
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
deserialize
public static AdvancementRewards deserialize(com.google.gson.JsonObject p_9992_) throws com.google.gson.JsonParseException- Throws:
com.google.gson.JsonParseException
-