Package net.minecraft.world.item.alchemy
Class PotionBrewing
java.lang.Object
net.minecraft.world.item.alchemy.PotionBrewing
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
private final List
<PotionBrewing.Mix<Item>> private final List
<Ingredient> static final PotionBrewing
private final List
<PotionBrewing.Mix<Potion>> private final BrewingRecipeRegistry
-
Constructor Summary
ConstructorDescriptionPotionBrewing
(List<Ingredient> p_340915_, List<PotionBrewing.Mix<Potion>> p_341164_, List<PotionBrewing.Mix<Item>> p_341170_) PotionBrewing
(List<Ingredient> p_340915_, List<PotionBrewing.Mix<Potion>> p_341164_, List<PotionBrewing.Mix<Item>> p_341170_, List<IBrewingRecipe> recipes) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addVanillaMixes
(PotionBrewing.Builder p_341215_) static PotionBrewing
bootstrap
(FeatureFlagSet p_341301_) Retrieves recipes that use the more general interface.boolean
hasContainerMix
(ItemStack p_43520_, ItemStack p_43521_) boolean
boolean
hasPotionMix
(ItemStack p_43525_, ItemStack p_43526_) boolean
isBrewablePotion
(Holder<Potion> p_316354_) private boolean
isContainer
(ItemStack p_341168_) boolean
isContainerIngredient
(ItemStack p_43518_) boolean
isIngredient
(ItemStack p_43507_) boolean
Checks if an item stack is a valid input for brewing, for use in the lower 3 slots where water bottles would normally go.boolean
isPotionIngredient
(ItemStack p_43523_)
-
Field Details
-
BREWING_TIME_SECONDS
public static final int BREWING_TIME_SECONDS- See Also:
-
EMPTY
-
containers
-
potionMixes
-
containerMixes
-
registry
-
-
Constructor Details
-
PotionBrewing
PotionBrewing(List<Ingredient> p_340915_, List<PotionBrewing.Mix<Potion>> p_341164_, List<PotionBrewing.Mix<Item>> p_341170_) -
PotionBrewing
PotionBrewing(List<Ingredient> p_340915_, List<PotionBrewing.Mix<Potion>> p_341164_, List<PotionBrewing.Mix<Item>> p_341170_, List<IBrewingRecipe> recipes)
-
-
Method Details
-
isIngredient
-
isInput
Checks if an item stack is a valid input for brewing, for use in the lower 3 slots where water bottles would normally go. -
getRecipes
Retrieves recipes that use the more general interface. This does NOT include the container and potion mixes. -
isContainer
-
isContainerIngredient
-
isPotionIngredient
-
isBrewablePotion
-
hasMix
-
hasContainerMix
-
hasPotionMix
-
mix
-
bootstrap
-
addVanillaMixes
-