类 AdvancementRewards
java.lang.Object
net.minecraft.advancements.AdvancementRewards
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明static final AdvancementRewards
private final int
private final CommandFunction.CacheableFunction
private final ResourceLocation[]
private final ResourceLocation[]
-
构造器概要
构造器构造器说明AdvancementRewards
(int pExperience, ResourceLocation[] pLoot, ResourceLocation[] pRecipes, CommandFunction.CacheableFunction pFunction) -
方法概要
修饰符和类型方法说明static AdvancementRewards
deserialize
(com.google.gson.JsonObject pJson) void
grant
(ServerPlayer pPlayer) com.google.gson.JsonElement
toString()
-
字段详细资料
-
EMPTY
-
experience
private final int experience -
loot
-
recipes
-
function
-
-
构造器详细资料
-
AdvancementRewards
public AdvancementRewards(int pExperience, ResourceLocation[] pLoot, ResourceLocation[] pRecipes, CommandFunction.CacheableFunction pFunction)
-
-
方法详细资料
-
getRecipes
-
grant
-
toString
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
deserialize
public static AdvancementRewards deserialize(com.google.gson.JsonObject pJson) throws com.google.gson.JsonParseException - 抛出:
com.google.gson.JsonParseException
-