public class CustomRecipeManager extends Object
Constructor and Description |
---|
CustomRecipeManager() |
Modifier and Type | Method and Description |
---|---|
void |
addCustomRecipe(CustomRecipe recipe)
Add a custom recipe for some STB machine.
|
void |
addCustomRecipe(CustomRecipe recipe,
boolean allowWild)
Add a custom recipe for some STB machine.
|
Object |
clone() |
Set<ItemStack> |
getAllResults()
Get a set of all possible items that can be made via custom recipes.
|
static CustomRecipeManager |
getManager()
Get the custom recipe manager instance.
|
ProcessingResult |
getRecipe(BaseSTBMachine machine,
ItemStack... ingredients)
Get the result (including processing time) for the given machine and
ingredients.
|
List<CustomRecipe> |
getRecipesFor(ItemStack result)
Get all known custom recipes which will make the given item.
|
boolean |
hasRecipe(BaseSTBMachine machine,
ItemStack... ingredients)
Check if the given machine can make anything with the given items.
|
public static CustomRecipeManager getManager()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void addCustomRecipe(CustomRecipe recipe, boolean allowWild)
recipe
- the recipe to addallowWild
- allow wildcarded data valuespublic void addCustomRecipe(CustomRecipe recipe)
recipe
- the recipe to addpublic List<CustomRecipe> getRecipesFor(ItemStack result)
result
- the item for which to find recipes forpublic ProcessingResult getRecipe(BaseSTBMachine machine, ItemStack... ingredients)
machine
- an STB machineingredients
- some items to processpublic boolean hasRecipe(BaseSTBMachine machine, ItemStack... ingredients)
machine
- an STB machineingredients
- some items to processCopyright © 2014. All rights reserved.