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 Ingredient
ingredient
private Ingredient
input
private ItemStack
output
-
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 Ingredient
getIngredient()
Ingredient
getInput()
ItemStack
getOutput()
ItemStack
getOutput(ItemStack input, ItemStack ingredient)
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
isInput(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: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
public ItemStack getOutput(ItemStack input, ItemStack ingredient)
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
public Ingredient getInput()
-
getIngredient
public Ingredient getIngredient()
-
getOutput
public ItemStack getOutput()
-
isIngredient
public boolean isIngredient(ItemStack ingredient)
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
-
-