Package net.minecraft.advancements
Class AdvancementRewards.Builder
- java.lang.Object
-
- net.minecraft.advancements.AdvancementRewards.Builder
-
- Enclosing class:
- AdvancementRewards
public static class AdvancementRewards.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
experience
private ResourceLocation
function
private java.util.List<ResourceLocation>
loot
private java.util.List<ResourceLocation>
recipes
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AdvancementRewards.Builder
addExperience(int p_203906_1_)
AdvancementRewards.Builder
addRecipe(ResourceLocation p_200279_1_)
AdvancementRewards
build()
static AdvancementRewards.Builder
experience(int p_203907_0_)
static AdvancementRewards.Builder
recipe(ResourceLocation p_200280_0_)
-
-
-
Field Detail
-
experience
private int experience
-
loot
private final java.util.List<ResourceLocation> loot
-
recipes
private final java.util.List<ResourceLocation> recipes
-
function
@Nullable private ResourceLocation function
-
-
Method Detail
-
experience
public static AdvancementRewards.Builder experience(int p_203907_0_)
-
addExperience
public AdvancementRewards.Builder addExperience(int p_203906_1_)
-
recipe
public static AdvancementRewards.Builder recipe(ResourceLocation p_200280_0_)
-
addRecipe
public AdvancementRewards.Builder addRecipe(ResourceLocation p_200279_1_)
-
build
public AdvancementRewards build()
-
-