public class AdvancementRewards extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AdvancementRewards.Builder |
Modifier and Type | Field and Description |
---|---|
private int |
experience |
private CommandFunction.LazyContainer |
function |
private Identifier[] |
loot |
static AdvancementRewards |
NONE |
private Identifier[] |
recipes |
Constructor and Description |
---|
AdvancementRewards(int experience,
Identifier[] loot,
Identifier[] recipes,
CommandFunction.LazyContainer function) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerPlayerEntity player) |
static AdvancementRewards |
fromJson(JsonObject json) |
JsonElement |
toJson() |
String |
toString() |
public static final AdvancementRewards NONE
private final int experience
private final Identifier[] loot
private final Identifier[] recipes
private final CommandFunction.LazyContainer function
public AdvancementRewards(int experience, Identifier[] loot, Identifier[] recipes, CommandFunction.LazyContainer function)
public void apply(ServerPlayerEntity player)
public JsonElement toJson()
public static AdvancementRewards fromJson(JsonObject json) throws JsonParseException
JsonParseException