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> 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 voidaddVanillaMixes(PotionBrewing.Builder pBuilder) static PotionBrewingbootstrap(FeatureFlagSet pEnabledFeatures) Deprecated.static PotionBrewingbootstrap(FeatureFlagSet pEnabledFeatures, RegistryAccess registryAccess) Retrieves recipes that use the more general interface.booleanhasContainerMix(ItemStack pReagent, ItemStack pPotionItem) booleanbooleanhasPotionMix(ItemStack pReagent, ItemStack pPotionItem) booleanisBrewablePotion(Holder<Potion> pPotion) private booleanisContainer(ItemStack pStack) booleanisContainerIngredient(ItemStack pStack) booleanisIngredient(ItemStack pStack) 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 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