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