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.
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)
// IProcessingRecipeManager<T : ProcessingRecipe>.addJsonRecipe(name as string, mapData as MapData);<recipetype:create:compacting>.addJsonRecipe(myString, myMapData);
Getter
<recipetype:create:compacting>.commandString
Return Type:
string
commandString() as string
<recipetype:create:compacting>.commandString();
Return Type:
string
getRecipeByName(name as string) as Recipe
<recipetype:create:compacting>.getRecipeByName(myString);
Parameters:
name: string
Type: string
Return Type:
Recipe
getRecipesByOutput(output as IIngredient) as List<Recipe>
// IProcessingRecipeManager<T : ProcessingRecipe>.getRecipesByOutput(output as IIngredient) as List<Recipe>;<recipetype:create:compacting>.getRecipesByOutput(myIIngredient);
Parameters:
output: IIngredient
Type: IIngredient
Return Type:
List<Recipe>
Getter
<recipetype:create:compacting>.recipeMap
Return Type:
Recipe[ResourceLocation]
recipeMap() as 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: string
Type: string
- The name of the recipe. recipeBuilder: function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void
Type: function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void
- The recipe builder. remove(output as IIngredient)
<recipetype:create:compacting>.remove(myIIngredient);
Parameters:
output: IIngredient
Type: IIngredient
removeAll()
<recipetype:create:compacting>.removeAll();
removeByInput(input as IItemStack)
<recipetype:create:compacting>.removeByInput(myIItemStack);
Parameters:
input: IItemStack
Type: IItemStack
removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false)
// 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: string
Type: string
exclude: function(t as string) as bool
(optional) Type: function(t as string) as bool
Default Value: (name as string) as bool => false
removeByName(names as string[])
<recipetype:create:compacting>.removeByName(myString[]);
Parameters:
names: string[]
Type: string[]
removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false)
// 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: string
Type: string
exclude: function(t as string) as bool
(optional) Type: function(t as string) as bool
Default Value: (name as string) as bool => false