Class PotionBrewing
java.lang.Object
net.minecraft.world.item.alchemy.PotionBrewing
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static 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
ConstructorsModifierConstructorDescriptionprivatePotionBrewing(List<Ingredient> containers, List<PotionBrewing.Mix<Potion>> potionMixes, List<PotionBrewing.Mix<Item>> containerMixes) (package private)PotionBrewing(List<Ingredient> containers, List<PotionBrewing.Mix<Potion>> potionMixes, List<PotionBrewing.Mix<Item>> containerMixes, List<IBrewingRecipe> recipes) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddVanillaMixes(PotionBrewing.Builder builder) static PotionBrewingbootstrap(FeatureFlagSet enabledFeatures) Deprecated.static PotionBrewingbootstrap(FeatureFlagSet enabledFeatures, RegistryAccess registryAccess) Retrieves recipes that use the more general interface.booleanhasContainerMix(ItemStack source, ItemStack ingredient) booleanbooleanhasPotionMix(ItemStack source, ItemStack ingredient) booleanisBrewablePotion(Holder<Potion> potion) private booleanisContainer(ItemStack input) booleanisContainerIngredient(ItemStack ingredient) booleanisIngredient(ItemStack ingredient) 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 ingredient)
-
Field Details
-
BREWING_TIME_SECONDS
public static final int BREWING_TIME_SECONDS- See Also:
-
EMPTY
-
containers
-
potionMixes
-
containerMixes
-
registry
-
-
Constructor Details
-
PotionBrewing
private 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