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 List
<IBrewingRecipe> -
Constructor Summary
ConstructorDescriptionPotionBrewing
(List<Ingredient> p_331253_, List<PotionBrewing.Mix<Potion>> p_333814_, List<PotionBrewing.Mix<Item>> p_332419_) PotionBrewing
(List<Ingredient> p_331253_, List<PotionBrewing.Mix<Potion>> p_333814_, List<PotionBrewing.Mix<Item>> p_332419_, PotionBrewing.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addVanillaMixes
(PotionBrewing.Builder p_332525_) static PotionBrewing
bootstrap
(FeatureFlagSet p_329176_) Returns an unmodifiable list containing all the recipes in the registryboolean
hasContainerMix
(ItemStack p_43520_, ItemStack p_43521_) Deprecated.Forge: use hasMix(ItemStack, ItemStack)boolean
boolean
hasPotionMix
(ItemStack p_43525_, ItemStack p_43526_) Deprecated.Forge: use hasMix(ItemStack, ItemStack)boolean
isBrewablePotion
(Holder<Potion> p_330984_) private boolean
isContainer
(ItemStack p_328293_) boolean
isContainerIngredient
(ItemStack p_43518_) boolean
isIngredient
(ItemStack p_43507_) boolean
isPotionIngredient
(ItemStack p_43523_) boolean
isValidInput
(ItemStack stack) Returns true if the passed ItemStack is a valid input for the start of a recipeprivate ItemStack
mixVanilla
(ItemStack p_43530_, ItemStack p_43531_)
-
Field Details
-
BREWING_TIME_SECONDS
public static final int BREWING_TIME_SECONDS- See Also:
-
EMPTY
-
containers
-
potionMixes
-
containerMixes
-
recipes
-
-
Constructor Details
-
PotionBrewing
PotionBrewing(List<Ingredient> p_331253_, List<PotionBrewing.Mix<Potion>> p_333814_, List<PotionBrewing.Mix<Item>> p_332419_) -
PotionBrewing
PotionBrewing(List<Ingredient> p_331253_, List<PotionBrewing.Mix<Potion>> p_333814_, List<PotionBrewing.Mix<Item>> p_332419_, PotionBrewing.Builder builder)
-
-
Method Details
-
isIngredient
-
isContainer
-
isContainerIngredient
-
isPotionIngredient
-
isBrewablePotion
-
hasMix
-
hasContainerMix
Deprecated.Forge: use hasMix(ItemStack, ItemStack) -
hasPotionMix
Deprecated.Forge: use hasMix(ItemStack, ItemStack) -
mix
-
mixVanilla
-
isValidInput
Returns true if the passed ItemStack is a valid input for the start of a recipe -
getRecipes
Returns an unmodifiable list containing all the recipes in the registry -
bootstrap
-
addVanillaMixes
-