Class BrewingRecipe
- java.lang.Object
-
- net.minecraftforge.common.brewing.BrewingRecipe
-
- All Implemented Interfaces:
IBrewingRecipe
public class BrewingRecipe extends java.lang.Object implements IBrewingRecipe
-
-
Field Summary
Fields Modifier and Type Field Description private Ingredientingredientprivate Ingredientinputprivate ItemStackoutput
-
Constructor Summary
Constructors Constructor Description BrewingRecipe(Ingredient input, Ingredient ingredient, ItemStack output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IngredientgetIngredient()IngredientgetInput()ItemStackgetOutput()ItemStackgetOutput(ItemStack input, ItemStack ingredient)Returns the output when the passed input is brewed with the passed ingredient.booleanisIngredient(ItemStack ingredient)Returns true if the passed ItemStack is an ingredient for this recipe.booleanisInput(ItemStack stack)Returns true is the passed ItemStack is an input for this recipe.
-
-
-
Field Detail
-
input
@Nonnull private final Ingredient input
-
ingredient
@Nonnull private final Ingredient ingredient
-
output
@Nonnull private final ItemStack output
-
-
Constructor Detail
-
BrewingRecipe
public BrewingRecipe(Ingredient input, Ingredient ingredient, ItemStack output)
-
-
Method Detail
-
isInput
public boolean isInput(@Nonnull ItemStack stack)Description copied from interface:IBrewingRecipeReturns 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:
isInputin interfaceIBrewingRecipe
-
getOutput
public ItemStack getOutput(ItemStack input, ItemStack ingredient)
Description copied from interface:IBrewingRecipeReturns the output when the passed input is brewed with the passed ingredient. Empty if invalid input or ingredient.- Specified by:
getOutputin interfaceIBrewingRecipe
-
getInput
public Ingredient getInput()
-
getIngredient
public Ingredient getIngredient()
-
getOutput
public ItemStack getOutput()
-
isIngredient
public boolean isIngredient(ItemStack ingredient)
Description copied from interface:IBrewingRecipeReturns 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:
isIngredientin interfaceIBrewingRecipe
-
-