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 classAdvancementRewards.Builder
-
Field Summary
Fields Modifier and Type Field Description static AdvancementRewardsEMPTYprivate intexperienceprivate FunctionObject.CacheableFunctionfunctionprivate ResourceLocation[]lootprivate 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 AdvancementRewardsdeserialize(com.google.gson.JsonObject p_241096_0_)voidgrant(ServerPlayerEntity p_192113_1_)com.google.gson.JsonElementserializeToJson()java.lang.StringtoString()
-
-
-
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:
toStringin 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
-
-