Class BrewingRecipe
java.lang.Object
net.minecraftforge.common.brewing.BrewingRecipe
- All Implemented Interfaces:
IBrewingRecipe
-
Field Summary
Modifier and TypeFieldDescriptionprivate final @NotNull Ingredient
private final @NotNull Ingredient
private final @NotNull ItemStack
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetInput()
Returns the output when the passed input is brewed with the passed ingredient.boolean
isIngredient
(ItemStack ingredient) Returns true if the passed ItemStack is an ingredient for this recipe.boolean
Returns true is the passed ItemStack is an input for this recipe.
-
Field Details
-
input
-
ingredient
-
output
-
-
Constructor Details
-
BrewingRecipe
-
-
Method Details
-
isInput
Description copied from interface:IBrewingRecipe
Returns true is the passed ItemStack is an input for this recipe. "Input" being the item that goes in one of the three bottom slots of the brewing stand (e.g: water bottle)- Specified by:
isInput
in interfaceIBrewingRecipe
-
getOutput
Description copied from interface:IBrewingRecipe
Returns the output when the passed input is brewed with the passed ingredient. Empty if invalid input or ingredient.- Specified by:
getOutput
in interfaceIBrewingRecipe
-
getInput
-
getIngredient
-
getOutput
-
isIngredient
Description copied from interface:IBrewingRecipe
Returns true if the passed ItemStack is an ingredient for this recipe. "Ingredient" being the item that goes in the top slot of the brewing stand (e.g: nether wart)- Specified by:
isIngredient
in interfaceIBrewingRecipe
-