Package net.minecraft.world.item.alchemy
Class PotionBrewing.Builder
java.lang.Object
net.minecraft.world.item.alchemy.PotionBrewing.Builder
- Enclosing class:
PotionBrewing
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<PotionBrewing.Mix<Item>> private final List<Ingredient> private final FeatureFlagSetprivate final List<PotionBrewing.Mix<Potion>> private final List<IBrewingRecipe> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContainer(Item p_340911_) voidaddContainerRecipe(Item p_341264_, Item p_340992_, Item p_341160_) voidvoidaddRecipe(Ingredient input, Ingredient ingredient, ItemStack output) Adds a new simple brewing recipe.voidaddRecipe(IBrewingRecipe recipe) Adds a new brewing recipe with custom logic.voidaddStartMix(Item p_341103_, Holder<Potion> p_341346_) build()private static voidexpectPotion(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
-