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 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> 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 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 reagent, ItemStack potionItem) booleanbooleanhasPotionMix(ItemStack reagent, ItemStack potionItem) booleanisBrewablePotion(Holder<Potion> potion) private booleanisContainer(ItemStack stack) booleanisContainerIngredient(ItemStack stack) booleanisIngredient(ItemStack stack) 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 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