public class AdvancementRewards extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AdvancementRewards.Builder |
static class |
AdvancementRewards.Deserializer |
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 lazyContainer) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerPlayerEntity serverPlayerEntity) |
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 lazyContainer)
public void apply(ServerPlayerEntity serverPlayerEntity)
public JsonElement toJson()