public class CraftingManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addRecipe(IRecipe recipe)
Adds an IRecipe to the list of crafting recipes.
|
ShapedRecipes |
addRecipe(ItemStack stack,
java.lang.Object... recipeComponents)
Adds a shaped recipe to the games recipe list.
|
void |
addShapelessRecipe(ItemStack stack,
java.lang.Object... recipeComponents)
Adds a shapeless crafting recipe to the the game.
|
ItemStack |
findMatchingRecipe(InventoryCrafting craftMatrix,
World worldIn)
Retrieves an ItemStack that has multiple recipes for it.
|
static CraftingManager |
getInstance()
Returns the static instance of this class
|
java.util.List<IRecipe> |
getRecipeList()
returns the List<> of all recipes
|
NonNullList<ItemStack> |
getRemainingItems(InventoryCrafting craftMatrix,
World worldIn) |
public static CraftingManager getInstance()
public ShapedRecipes addRecipe(ItemStack stack, java.lang.Object... recipeComponents)
public void addShapelessRecipe(ItemStack stack, java.lang.Object... recipeComponents)
public void addRecipe(IRecipe recipe)
public ItemStack findMatchingRecipe(InventoryCrafting craftMatrix, World worldIn)
public NonNullList<ItemStack> getRemainingItems(InventoryCrafting craftMatrix, World worldIn)
public java.util.List<IRecipe> getRecipeList()