public abstract class AbstractBrewingRecipe<T> extends java.lang.Object implements IBrewingRecipe
Modifier and Type | Field and Description |
---|---|
private T |
ingredient |
private ItemStack |
input |
private ItemStack |
output |
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
@Nonnull private final ItemStack input
private final T ingredient
private final ItemStack output
public boolean isInput(@Nonnull ItemStack stack)
IBrewingRecipe
isInput
in interface IBrewingRecipe
@Nonnull public ItemStack getOutput(@Nonnull ItemStack input, @Nonnull ItemStack ingredient)
IBrewingRecipe
getOutput
in interface IBrewingRecipe
@Nonnull public ItemStack getInput()
@Nonnull public T getIngredient()
@Nonnull public ItemStack getOutput()