Package net.fabricmc.fabric.api.registry
Class FabricBrewingRecipeRegistry
java.lang.Object
net.fabricmc.fabric.api.registry.FabricBrewingRecipeRegistry
Counterpart of
BrewingRecipeRegistry
with methods that allow adding recipes which use Ingredients instead of Items.-
Method Summary
Modifier and TypeMethodDescriptionstatic void
registerItemRecipe
(PotionItem input, Ingredient ingredient, PotionItem output) Register a recipe for brewing one potion type into another (e.g.static void
registerPotionRecipe
(Potion input, Ingredient ingredient, Potion output) Register a recipe for converting from one potion to another (e.g.
-
Method Details
-
registerItemRecipe
Register a recipe for brewing one potion type into another (e.g. regular to splash). Only one recipe is necessary for all potions of the input type to be brewable into the output type using the ingredient. UseBrewingRecipeRegistry.registerPotionType(Item)
to register new potion types.- Parameters:
input
- the input potion type (e.g. regular potion)ingredient
- the required ingredient (e.g. gunpowder)output
- the output type (e.g. splash potion)- See Also:
-
BrewingRecipeRegistry.registerItemRecipe(Item, Item, Item)
-
registerPotionRecipe
Register a recipe for converting from one potion to another (e.g. awkward to instant health). This does not automatically create long or strong versions of the output potion. They require separate recipes.- Parameters:
input
- input potion (e.g. awkward)ingredient
- the required ingredient (e.g. glistering melon)output
- output potion (e.g. instant health)- See Also:
-
BrewingRecipeRegistry.registerPotionRecipe(Potion, Item, Potion)
-