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)
IBrewingRecipeisInput in interface IBrewingRecipepublic ItemStack getOutput(ItemStack input, ItemStack ingredient)
IBrewingRecipegetOutput in interface IBrewingRecipepublic ItemStack getInput()
public Ingredient getIngredient()
public ItemStack getOutput()
public boolean isIngredient(ItemStack ingredient)
IBrewingRecipeisIngredient in interface IBrewingRecipe