public class BrewingRecipeRegistry
extends java.lang.Object
Constructor and Description |
---|
BrewingRecipeRegistry() |
Modifier and Type | Method and Description |
---|---|
static boolean |
addRecipe(IBrewingRecipe recipe)
Adds a recipe to the registry.
|
static boolean |
addRecipe(ItemStack input,
ItemStack ingredient,
ItemStack output)
Adds a recipe to the registry.
|
static boolean |
addRecipe(ItemStack input,
java.lang.String ingredient,
ItemStack output)
Adds a recipe to the registry.
|
static void |
brewPotions(NonNullList<ItemStack> inputs,
ItemStack ingredient,
int[] inputIndexes)
Used by the brewing stand to brew its inventory Extra parameters exist to
allow modders to create bigger brewing stands without much hassle
|
static boolean |
canBrew(NonNullList<ItemStack> inputs,
ItemStack ingredient,
int[] inputIndexes)
Used by the brewing stand to determine if its contents can be brewed.
|
static ItemStack |
getOutput(ItemStack input,
ItemStack ingredient)
Returns the output ItemStack obtained by brewing the passed input and
ingredient.
|
static java.util.List<IBrewingRecipe> |
getRecipes()
Returns an unmodifiable list containing all the recipes in the registry
|
static boolean |
hasOutput(ItemStack input,
ItemStack ingredient)
Returns true if the passed input and ingredient have an output
|
static boolean |
isValidIngredient(ItemStack stack)
Returns true if the passed ItemStack is a valid ingredient for any of the
recipes in the registry.
|
static boolean |
isValidInput(ItemStack stack)
Returns true if the passed ItemStack is a valid input for any of the
recipes in the registry.
|
public static boolean addRecipe(@Nonnull ItemStack input, @Nonnull ItemStack ingredient, @Nonnull ItemStack output)
input
- The ItemStack that goes in same slots as the water bottles
would.ingredient
- The ItemStack that goes in the same slot as nether wart would.output
- The ItemStack that will replace the input once the brewing is
done.public static boolean addRecipe(@Nonnull ItemStack input, @Nonnull java.lang.String ingredient, @Nonnull ItemStack output)
input
- The ItemStack that goes in same slots as the water bottles
would.ingredient
- The ItemStack that goes in the same slot as nether wart would.output
- The ItemStack that will replace the input once the brewing is
done.public static boolean addRecipe(IBrewingRecipe recipe)
@Nonnull public static ItemStack getOutput(@Nonnull ItemStack input, @Nonnull ItemStack ingredient)
public static boolean hasOutput(@Nonnull ItemStack input, @Nonnull ItemStack ingredient)
public static boolean canBrew(NonNullList<ItemStack> inputs, @Nonnull ItemStack ingredient, int[] inputIndexes)
public static void brewPotions(NonNullList<ItemStack> inputs, @Nonnull ItemStack ingredient, int[] inputIndexes)
public static boolean isValidIngredient(@Nonnull ItemStack stack)
public static boolean isValidInput(@Nonnull ItemStack stack)
public static java.util.List<IBrewingRecipe> getRecipes()