public class BrewingRecipe extends java.lang.Object implements IBrewingRecipe
Constructor and Description |
---|
BrewingRecipe(ItemStack input,
Ingredient ingredient,
ItemStack output) |
Modifier and Type | Method and Description |
---|---|
Ingredient |
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 |
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.
|
public BrewingRecipe(ItemStack input, Ingredient ingredient, ItemStack output)
public boolean isInput(@Nonnull ItemStack stack)
IBrewingRecipe
isInput
in interface IBrewingRecipe
public ItemStack getOutput(ItemStack input, ItemStack ingredient)
IBrewingRecipe
getOutput
in interface IBrewingRecipe
public ItemStack getInput()
public Ingredient getIngredient()
public ItemStack getOutput()
public boolean isIngredient(ItemStack ingredient)
IBrewingRecipe
isIngredient
in interface IBrewingRecipe