public abstract class AbstractBrewingRecipe<T> extends java.lang.Object implements IBrewingRecipe
| Modifier and Type | Field and Description |
|---|---|
T |
ingredient |
ItemStack |
input |
ItemStack |
output |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBrewingRecipe(ItemStack input,
T ingredient,
ItemStack output) |
| Modifier and Type | Method and Description |
|---|---|
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 final ItemStack input
public final T ingredient
public final ItemStack output
public boolean isInput(ItemStack stack)
IBrewingRecipeisInput in interface IBrewingRecipepublic ItemStack getOutput(ItemStack input, ItemStack ingredient)
IBrewingRecipegetOutput in interface IBrewingRecipe