public abstract class AbstractBrewingRecipe<T> extends java.lang.Object implements IBrewingRecipe
Modifier | Constructor and Description |
---|---|
protected |
AbstractBrewingRecipe(ItemStack input,
T ingredient,
ItemStack output) |
Modifier and Type | Method and Description |
---|---|
T |
getIngredient() |
ItemStack |
getInput() |
ItemStack |
getOutput() |
ItemStack |
getOutput(ItemStack input,
ItemStack ingredient)
Returns the output when the passed input is brewed with the passed
ingredient.
|
boolean |
isInput(ItemStack stack)
Returns true is the passed ItemStack is an input for this recipe.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isIngredient
public boolean isInput(ItemStack stack)
IBrewingRecipe
isInput
in interface IBrewingRecipe
public ItemStack getOutput(ItemStack input, ItemStack ingredient)
IBrewingRecipe
getOutput
in interface IBrewingRecipe
public ItemStack getInput()
public T getIngredient()
public ItemStack getOutput()