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> containers, List<PotionBrewing.Mix<Potion>> potionMixes, List<PotionBrewing.Mix<Item>> containerMixes) PotionBrewing
(List<Ingredient> containers, List<PotionBrewing.Mix<Potion>> potionMixes, List<PotionBrewing.Mix<Item>> containerMixes, List<IBrewingRecipe> recipes) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addVanillaMixes
(PotionBrewing.Builder builder) static PotionBrewing
bootstrap
(FeatureFlagSet enabledFeatures) Deprecated.static PotionBrewing
bootstrap
(FeatureFlagSet enabledFeatures, RegistryAccess registryAccess) Retrieves recipes that use the more general interface.boolean
hasContainerMix
(ItemStack reagent, ItemStack potionItem) boolean
boolean
hasPotionMix
(ItemStack reagent, ItemStack potionItem) boolean
isBrewablePotion
(Holder<Potion> potion) private boolean
isContainer
(ItemStack stack) boolean
isContainerIngredient
(ItemStack stack) boolean
isIngredient
(ItemStack stack) 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 stack)
-
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> containers, List<PotionBrewing.Mix<Potion>> potionMixes, List<PotionBrewing.Mix<Item>> containerMixes) -
PotionBrewing
PotionBrewing(List<Ingredient> containers, List<PotionBrewing.Mix<Potion>> potionMixes, List<PotionBrewing.Mix<Item>> containerMixes, 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 enabledFeatures, RegistryAccess registryAccess) -
addVanillaMixes
-
bootstrap(FeatureFlagSet, net.minecraft.core.RegistryAccess)
instead