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, waitisIngredientpublic boolean isInput(ItemStack stack)
IBrewingRecipeisInput in interface IBrewingRecipepublic ItemStack getOutput(ItemStack input, ItemStack ingredient)
IBrewingRecipegetOutput in interface IBrewingRecipepublic ItemStack getInput()
public T getIngredient()
public ItemStack getOutput()