Package net.minecraft.world.item.alchemy
Class PotionBrewing
java.lang.Object
net.minecraft.world.item.alchemy.PotionBrewing
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate final List<PotionBrewing.Mix<Item>> private final List<Ingredient> static final PotionBrewingprivate final List<PotionBrewing.Mix<Potion>> private final BrewingRecipeRegistry -
Constructor Summary
ConstructorsConstructorDescriptionPotionBrewing(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 voidaddVanillaMixes(PotionBrewing.Builder p_341215_) static PotionBrewingbootstrap(FeatureFlagSet p_341301_) Retrieves recipes that use the more general interface.booleanhasContainerMix(ItemStack p_43520_, ItemStack p_43521_) booleanbooleanhasPotionMix(ItemStack p_43525_, ItemStack p_43526_) booleanisBrewablePotion(Holder<Potion> p_316354_) private booleanisContainer(ItemStack p_341168_) booleanisContainerIngredient(ItemStack p_43518_) booleanisIngredient(ItemStack p_43507_) booleanChecks if an item stack is a valid input for brewing, for use in the lower 3 slots where water bottles would normally go.booleanisPotionIngredient(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
-