RecipeManagerWrapper
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.recipe.RecipeManagerWrapper;Implements
RecipeManagerWrapper
implements the following interfaces:
IRecipeManager<Recipe<?>>,CommandStringDisplayable
Undocumented Interfaces
Iterable<RecipeHolderRecipeHolder<Recipe>>
Members
myRecipeManagerWrapper.addJsonRecipe("recipe_name", {ingredient: <item:minecraft:gold_ore>,result: <item:minecraft:cooked_porkchop>.registryName,experience: 0.35 as float,cookingtime:100});myRecipeManagerWrapper.allRecipes
Return Type:
List<RecipeHolderRecipeHolder<Recipe>>
// RecipeManagerWrapper.commandString as stringmyRecipeManagerWrapper.commandString
Return Type:
string
// RecipeManagerWrapper.commandString() as string;myRecipeManagerWrapper.commandString();
Return Type:
string
myRecipeManagerWrapper.getRecipeByName(myString);Parameters:
name: string  Type: string   
Return Type:
RecipeHolderRecipeHolder<Recipe>
// RecipeManagerWrapper.getRecipesByOutput(output as IIngredient) as List<RecipeHolderRecipeHolder<Recipe>>;myRecipeManagerWrapper.getRecipesByOutput(myIIngredient);Parameters:
output: IIngredient  Type: IIngredient   
Return Type:
List<RecipeHolderRecipeHolder<Recipe>>
// RecipeManagerWrapper.getRecipesMatching(predicate as function(t as RecipeHolderRecipeHolder<Recipe>) as bool) as List<RecipeHolderRecipeHolder<Recipe>>;myRecipeManagerWrapper.getRecipesMatching(myPredicate);Parameters:
predicate: function(t as RecipeHolderRecipeHolder<Recipe>) as bool  Type: function(t as RecipeHolderRecipeHolder<Recipe>) as bool   
Return Type:
List<RecipeHolderRecipeHolder<Recipe>>
myRecipeManagerWrapper.recipeMap
Return Type:
RecipeHolderRecipeHolder<Recipe>[ResourceLocation]
Returns: A Map of recipe name to recipe of all known recipes.
myRecipeManagerWrapper.recipeMap();
Return Type:
RecipeHolderRecipeHolder<Recipe>[ResourceLocation]
myRecipeManagerWrapper.remove(<tag:items:minecraft:wool>);Parameters:
// RecipeManagerWrapper.removeAll();myRecipeManagerWrapper.removeAll();myRecipeManagerWrapper.removeByInput(<item:minecraft:iron_ingot>);Parameters:
// RecipeManagerWrapper.removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false);myRecipeManagerWrapper.removeByModid("minecraft", myPredicate);Parameters:
modid: string  Type: string 
- modid of the recipes to remove   exclude: function(t as string) as bool (optional)  Type: function(t as string) as bool  
Default Value: (name as string) as bool => false 
// RecipeManagerWrapper.removeByName(names as string[]);myRecipeManagerWrapper.removeByName(myString[]);Parameters:
names: string[]  Type: string[] 
- registry names of recipes to remove   // RecipeManagerWrapper.removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false);myRecipeManagerWrapper.removeByRegex("\\d_\\d", (name as string) => {return name == "orange_wool";});Parameters:
regex: string  Type: string 
- regex to match against   exclude: function(t as string) as bool (optional)  Type: function(t as string) as bool  
Default Value: (name as string) as bool => false 
// RecipeManagerWrapper.removeMatching(predicate as function(t as RecipeHolderRecipeHolder<Recipe>) as bool);myRecipeManagerWrapper.removeMatching((holder) => "wool" in holder.id.path);Parameters:
predicate: function(t as RecipeHolderRecipeHolder<Recipe>) as bool  Type: function(t as RecipeHolderRecipeHolder<Recipe>) as bool 
- a predicate of RecipeHolder<T> to test recipes against.