Package net.minecraft.advancements
Class AdvancementRewards
- java.lang.Object
-
- net.minecraft.advancements.AdvancementRewards
-
public class AdvancementRewards extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AdvancementRewards.Builder
-
Field Summary
Fields Modifier and Type Field Description static AdvancementRewards
EMPTY
private int
experience
private FunctionObject.CacheableFunction
function
private ResourceLocation[]
loot
private ResourceLocation[]
recipes
-
Constructor Summary
Constructors Constructor Description AdvancementRewards(int p_i47587_1_, ResourceLocation[] p_i47587_2_, ResourceLocation[] p_i47587_3_, FunctionObject.CacheableFunction p_i47587_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AdvancementRewards
deserialize(com.google.gson.JsonObject p_241096_0_)
void
grant(ServerPlayerEntity p_192113_1_)
com.google.gson.JsonElement
serializeToJson()
java.lang.String
toString()
-
-
-
Field Detail
-
EMPTY
public static final AdvancementRewards EMPTY
-
experience
private final int experience
-
loot
private final ResourceLocation[] loot
-
recipes
private final ResourceLocation[] recipes
-
function
private final FunctionObject.CacheableFunction function
-
-
Constructor Detail
-
AdvancementRewards
public AdvancementRewards(int p_i47587_1_, ResourceLocation[] p_i47587_2_, ResourceLocation[] p_i47587_3_, FunctionObject.CacheableFunction p_i47587_4_)
-
-
Method Detail
-
grant
public void grant(ServerPlayerEntity p_192113_1_)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
deserialize
public static AdvancementRewards deserialize(com.google.gson.JsonObject p_241096_0_) throws com.google.gson.JsonParseException
- Throws:
com.google.gson.JsonParseException
-
-