Package net.minecraft.world.item.alchemy
Class PotionBrewing.Builder
java.lang.Object
net.minecraft.world.item.alchemy.PotionBrewing.Builder
- Enclosing class:
PotionBrewing
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<PotionBrewing.Mix<Item>> private final List
<Ingredient> private final FeatureFlagSet
private final List
<PotionBrewing.Mix<Potion>> private final List
<IBrewingRecipe> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addContainer
(Item p_340911_) void
addContainerRecipe
(Item p_341264_, Item p_340992_, Item p_341160_) void
void
addRecipe
(Ingredient input, Ingredient ingredient, ItemStack output) Adds a new simple brewing recipe.void
addRecipe
(IBrewingRecipe recipe) Adds a new brewing recipe with custom logic.void
addStartMix
(Item p_341103_, Holder<Potion> p_341346_) build()
private static void
expectPotion
(Item p_341194_)
-
Field Details
-
containers
-
potionMixes
-
containerMixes
-
recipes
-
enabledFeatures
-
-
Constructor Details
-
Builder
-
-
Method Details
-
expectPotion
-
addContainerRecipe
-
addContainer
-
addMix
-
addStartMix
-
addRecipe
Adds a new simple brewing recipe.- Parameters:
input
- the ingredient that goes in the same slot as water bottles wouldingredient
- the ingredient that goes in the same slot as nether wart wouldoutput
- the item stack that will replace the input once brewing is done
-
addRecipe
Adds a new brewing recipe with custom logic. -
build
-