public interface IRecipeManager
Modifier and Type | Method and Description |
---|---|
void |
addHiddenShaped(java.lang.String name,
IItemStack output,
IIngredient[][] ingredients,
IRecipeFunction function,
IRecipeAction action,
boolean mirrored) |
void |
addHiddenShapeless(java.lang.String name,
IItemStack output,
IIngredient[] ingredients,
IRecipeFunction function,
IRecipeAction action) |
void |
addShaped(IItemStack output,
IIngredient[][] ingredients,
IRecipeFunction function,
IRecipeAction action)
Adds a shaped recipe.
|
void |
addShaped(java.lang.String name,
IItemStack output,
IIngredient[][] ingredients,
IRecipeFunction function,
IRecipeAction action)
Adds a shaped recipe.
|
void |
addShapedMirrored(IItemStack output,
IIngredient[][] ingredients,
IRecipeFunction function,
IRecipeAction action)
Adds a mirrored shaped recipe.
|
void |
addShapedMirrored(java.lang.String name,
IItemStack output,
IIngredient[][] ingredients,
IRecipeFunction function,
IRecipeAction action)
Adds a mirrored shaped recipe.
|
void |
addShapeless(IItemStack output,
IIngredient[] ingredients,
IRecipeFunction function,
IRecipeAction action)
Adds a shapeless recipe.
|
void |
addShapeless(java.lang.String name,
IItemStack output,
IIngredient[] ingredients,
IRecipeFunction function,
IRecipeAction action)
Adds a shapeless recipe.
|
IItemStack |
craft(IItemStack[][] contents)
Performs a crafting with the specified ingredients.
|
java.util.List<ICraftingRecipe> |
getAll()
Returns all crafting recipes.
|
java.util.List<ICraftingRecipe> |
getRecipesFor(IIngredient ingredient)
Returns all crafting recipes resulting in the given ingredient.
|
void |
remove(IIngredient output,
boolean nbtMatch)
Removes all crafting recipes crafting the specified item.
|
void |
removeAll()
Removes all crafting recipes in the game
|
void |
removeByMod(java.lang.String modid)
Removes all recipe which match the given modid
|
void |
removeByRecipeName(java.lang.String recipeName,
IItemStack outputFilter)
Removes the recipe with the given registry name
|
void |
removeByRegex(java.lang.String regexString,
IItemStack outputFilter)
Removes all recipe which match the given regex String
|
void |
removeShaped(IIngredient output,
IIngredient[][] ingredients)
Removes shaped recipes.
|
void |
removeShapeless(IIngredient output,
IIngredient[] ingredients,
boolean wildcard)
Removes shapeless recipes.
|
void |
replaceAllOccurences(IIngredient toReplace,
IIngredient replaceWith,
IIngredient forOutput) |
java.util.List<ICraftingRecipe> getAll()
java.util.List<ICraftingRecipe> getRecipesFor(IIngredient ingredient)
ingredient
- ingredient to findvoid addShaped(IItemStack output, IIngredient[][] ingredients, IRecipeFunction function, IRecipeAction action)
output
- recipe outputingredients
- recipe ingredientsfunction
- recipe function (optional)void addShaped(java.lang.String name, IItemStack output, IIngredient[][] ingredients, IRecipeFunction function, IRecipeAction action)
output
- recipe outputingredients
- recipe ingredientsfunction
- recipe function (optional)void addShapedMirrored(IItemStack output, IIngredient[][] ingredients, IRecipeFunction function, IRecipeAction action)
output
- recipe outputingredients
- recipe ingredientsfunction
- recipe function (optional)void addShapedMirrored(java.lang.String name, IItemStack output, IIngredient[][] ingredients, IRecipeFunction function, IRecipeAction action)
output
- recipe outputingredients
- recipe ingredientsfunction
- recipe function (optional)void addShapeless(IItemStack output, IIngredient[] ingredients, IRecipeFunction function, IRecipeAction action)
output
- recipe outputingredients
- recipe ingredientsfunction
- recipe function (optional)void addShapeless(java.lang.String name, IItemStack output, IIngredient[] ingredients, IRecipeFunction function, IRecipeAction action)
output
- recipe outputingredients
- recipe ingredientsfunction
- recipe function (optional)void addHiddenShapeless(java.lang.String name, IItemStack output, IIngredient[] ingredients, IRecipeFunction function, IRecipeAction action)
name
- recipe nameoutput
- recipe outputingredients
- recipe ingredientsfunction
- recipe function (optional)action
- recipe action (optional)void addHiddenShaped(java.lang.String name, IItemStack output, IIngredient[][] ingredients, IRecipeFunction function, IRecipeAction action, boolean mirrored)
name
- recipe nameoutput
- recipe outputingredients
- recipe ingredientsfunction
- recipe function (optional)action
- recipe action (optional)mirrored
- is mirrored (optional)void removeAll()
void remove(IIngredient output, boolean nbtMatch)
output
- recipe output patternvoid removeByRecipeName(java.lang.String recipeName, IItemStack outputFilter)
recipeName:
- RegistryName of the recipevoid removeByRegex(java.lang.String regexString, IItemStack outputFilter)
regexString:
- Regex String to match tovoid removeByMod(java.lang.String modid)
modid:
- modid of recipes to removevoid removeShaped(IIngredient output, IIngredient[][] ingredients)
output
- recipe outputingredients
- recipe ingredientsvoid removeShapeless(IIngredient output, IIngredient[] ingredients, boolean wildcard)
output
- recipe outputingredients
- recipe ingredientswildcard
- if the recipe may contain other ingredients too, besides
the ones specifiedIItemStack craft(IItemStack[][] contents)
contents
- crafting inventory contentsvoid replaceAllOccurences(IIngredient toReplace, IIngredient replaceWith, IIngredient forOutput)