Package net.minecraft.world.item.alchemy
Class PotionBrewing
java.lang.Object
net.minecraft.world.item.alchemy.PotionBrewing
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
(package private) static final record
-
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionPotionBrewing
(List<Ingredient> pContainers, List<PotionBrewing.Mix<Potion>> pPotionMixes, List<PotionBrewing.Mix<Item>> pContainerMixes) PotionBrewing
(List<Ingredient> pContainers, List<PotionBrewing.Mix<Potion>> pPotionMixes, List<PotionBrewing.Mix<Item>> pContainerMixes, List<IBrewingRecipe> recipes) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addVanillaMixes
(PotionBrewing.Builder pBuilder) static PotionBrewing
bootstrap
(FeatureFlagSet pEnabledFeatures) Deprecated.static PotionBrewing
bootstrap
(FeatureFlagSet pEnabledFeatures, RegistryAccess registryAccess) Retrieves recipes that use the more general interface.boolean
hasContainerMix
(ItemStack pReagent, ItemStack pPotionItem) boolean
boolean
hasPotionMix
(ItemStack pReagent, ItemStack pPotionItem) boolean
isBrewablePotion
(Holder<Potion> pPotion) private boolean
isContainer
(ItemStack pStack) boolean
isContainerIngredient
(ItemStack pStack) boolean
isIngredient
(ItemStack pStack) 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 pStack)
-
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> pContainers, List<PotionBrewing.Mix<Potion>> pPotionMixes, List<PotionBrewing.Mix<Item>> pContainerMixes) -
PotionBrewing
PotionBrewing(List<Ingredient> pContainers, List<PotionBrewing.Mix<Potion>> pPotionMixes, List<PotionBrewing.Mix<Item>> pContainerMixes, 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
Deprecated. -
bootstrap
public static PotionBrewing bootstrap(FeatureFlagSet pEnabledFeatures, RegistryAccess registryAccess) -
addVanillaMixes
-
bootstrap(FeatureFlagSet, net.minecraft.core.RegistryAccess)
instead