Package net.minecraft.world.item.alchemy
Class PotionBrewing
java.lang.Object
net.minecraft.world.item.alchemy.PotionBrewing
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic 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 List<IBrewingRecipe> -
Constructor Summary
ConstructorsConstructorDescriptionPotionBrewing(List<Ingredient> p_331253_, List<PotionBrewing.Mix<Potion>> p_333814_, List<PotionBrewing.Mix<Item>> p_332419_) PotionBrewing(List<Ingredient> p_331253_, List<PotionBrewing.Mix<Potion>> p_333814_, List<PotionBrewing.Mix<Item>> p_332419_, PotionBrewing.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddVanillaMixes(PotionBrewing.Builder p_332525_) static PotionBrewingbootstrap(FeatureFlagSet p_329176_) Returns an unmodifiable list containing all the recipes in the registrybooleanhasContainerMix(ItemStack p_43520_, ItemStack p_43521_) Deprecated.Forge: use hasMix(ItemStack, ItemStack)booleanbooleanhasPotionMix(ItemStack p_43525_, ItemStack p_43526_) Deprecated.Forge: use hasMix(ItemStack, ItemStack)booleanisBrewablePotion(Holder<Potion> p_330984_) private booleanisContainer(ItemStack p_328293_) booleanisContainerIngredient(ItemStack p_43518_) booleanisIngredient(ItemStack p_43507_) booleanisPotionIngredient(ItemStack p_43523_) booleanisValidInput(ItemStack stack) Returns true if the passed ItemStack is a valid input for the start of a recipeprivate ItemStackmixVanilla(ItemStack p_43530_, ItemStack p_43531_)
-
Field Details
-
BREWING_TIME_SECONDS
public static final int BREWING_TIME_SECONDS- See Also:
-
EMPTY
-
containers
-
potionMixes
-
containerMixes
-
recipes
-
-
Constructor Details
-
PotionBrewing
PotionBrewing(List<Ingredient> p_331253_, List<PotionBrewing.Mix<Potion>> p_333814_, List<PotionBrewing.Mix<Item>> p_332419_) -
PotionBrewing
PotionBrewing(List<Ingredient> p_331253_, List<PotionBrewing.Mix<Potion>> p_333814_, List<PotionBrewing.Mix<Item>> p_332419_, PotionBrewing.Builder builder)
-
-
Method Details
-
isIngredient
-
isContainer
-
isContainerIngredient
-
isPotionIngredient
-
isBrewablePotion
-
hasMix
-
hasContainerMix
Deprecated.Forge: use hasMix(ItemStack, ItemStack) -
hasPotionMix
Deprecated.Forge: use hasMix(ItemStack, ItemStack) -
mix
-
mixVanilla
-
isValidInput
Returns true if the passed ItemStack is a valid input for the start of a recipe -
getRecipes
Returns an unmodifiable list containing all the recipes in the registry -
bootstrap
-
addVanillaMixes
-