IProcessingRecipeManager

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.

script.zs
import mods.create.IProcessingRecipeManager;

Description

Implements

IProcessingRecipeManager<ProcessingRecipe> implements the following interfaces:

IRecipeManager<ProcessingRecipe>,CommandStringDisplayable

Undocumented Interfaces

Iterable<Recipe>

Members

addJsonRecipe(name as string, mapData as MapData)
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.addJsonRecipe(name as string, mapData as MapData);
<recipetype:create:compacting>.addJsonRecipe(myString, myMapData);

Parameters:

name Type: string
mapData Type: MapData
Getter
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.allRecipes as List<Recipe>
<recipetype:create:compacting>.allRecipes

Return Type: List<Recipe>

allRecipes() as List<Recipe>
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.allRecipes() as List<Recipe>;
<recipetype:create:compacting>.allRecipes();

Return Type: List<Recipe>

Getter
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.commandString as string
<recipetype:create:compacting>.commandString

Return Type: string

commandString() as string
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.commandString() as string;
<recipetype:create:compacting>.commandString();

Return Type: string

getRecipeByName(name as string) as Recipe
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.getRecipeByName(name as string) as Recipe;
<recipetype:create:compacting>.getRecipeByName(myString);

Parameters:

name Type: string

Return Type: Recipe

getRecipesByOutput(output as IIngredient) as List<Recipe>
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.getRecipesByOutput(output as IIngredient) as List<Recipe>;
<recipetype:create:compacting>.getRecipesByOutput(myIIngredient);

Parameters:

output Type: IIngredient

Return Type: List<Recipe>

Getter
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.recipeMap as Recipe[ResourceLocation]
<recipetype:create:compacting>.recipeMap

Return Type: Recipe[ResourceLocation]

recipeMap() as Recipe[ResourceLocation]
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.recipeMap() as Recipe[ResourceLocation];
<recipetype:create:compacting>.recipeMap();

Return Type: Recipe[ResourceLocation]

registerRecipe(name as string, recipeBuilder as function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void)
Registers a recipe using a builder approach.
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.registerRecipe(name as string, recipeBuilder as function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void);
<recipetype:create:compacting>.registerRecipe(myString, myConsumer);

Parameters:

name Type: string - The name of the recipe.
recipeBuilder Type: function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void - The recipe builder.
remove(output as IIngredient)
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.remove(output as IIngredient);
<recipetype:create:compacting>.remove(myIIngredient);

Parameters:

output Type: IIngredient
removeAll()
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.removeAll();
<recipetype:create:compacting>.removeAll();
removeByInput(input as IItemStack)
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.removeByInput(input as IItemStack);
<recipetype:create:compacting>.removeByInput(myIItemStack);

Parameters:

input Type: IItemStack
removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false)
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false);
<recipetype:create:compacting>.removeByModid(myString, myPredicate);

Parameters:

modid Type: string
exclude (optional) Type: function(t as string) as bool

Default Value: (name as string) as bool => false

removeByName(names as string[])
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.removeByName(names as string[]);
<recipetype:create:compacting>.removeByName(myString[]);

Parameters:

names Type: string[]
removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false)
script.zs
// IProcessingRecipeManager<T : ProcessingRecipe>.removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false);
<recipetype:create:compacting>.removeByRegex(myString, myPredicate);

Parameters:

regex Type: string
exclude (optional) Type: function(t as string) as bool

Default Value: (name as string) as bool => false