public static class AdvancementRewards.Builder extends Object
Modifier and Type | Field and Description |
---|---|
private int |
experience |
private Identifier |
function |
private List<Identifier> |
loot |
private List<Identifier> |
recipes |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AdvancementRewards.Builder |
addRecipe(Identifier recipe) |
AdvancementRewards |
build() |
static AdvancementRewards.Builder |
experience(int experience) |
static AdvancementRewards.Builder |
recipe(Identifier recipe) |
AdvancementRewards.Builder |
setExperience(int experience) |
private int experience
private final List<Identifier> loot
private final List<Identifier> recipes
@Nullable private Identifier function
public static AdvancementRewards.Builder experience(int experience)
public AdvancementRewards.Builder setExperience(int experience)
public static AdvancementRewards.Builder recipe(Identifier recipe)
public AdvancementRewards.Builder addRecipe(Identifier recipe)
public AdvancementRewards build()