Package net.minecraft.advancements
Class AdvancementRewards.Builder
java.lang.Object
net.minecraft.advancements.AdvancementRewards.Builder
- Enclosing class:
AdvancementRewards
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private Optional
<ResourceLocation> private final com.google.common.collect.ImmutableList.Builder
<ResourceKey<LootTable>> private final com.google.common.collect.ImmutableList.Builder
<ResourceLocation> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddExperience
(int p_10008_) addLootTable
(ResourceKey<LootTable> p_335822_) addRecipe
(ResourceLocation p_10012_) build()
static AdvancementRewards.Builder
experience
(int p_10006_) static AdvancementRewards.Builder
function
(ResourceLocation p_144827_) static AdvancementRewards.Builder
loot
(ResourceKey<LootTable> p_335493_) static AdvancementRewards.Builder
recipe
(ResourceLocation p_10010_) runs
(ResourceLocation p_144829_)
-
Field Details
-
experience
private int experience -
loot
-
recipes
-
function
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
experience
-
addExperience
-
loot
-
addLootTable
-
recipe
-
addRecipe
-
function
-
runs
-
build
-