ItemApplicationManager

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.ItemApplicationManager;

Description

Implements

ItemApplicationManager implements the following interfaces:

IProcessingRecipeManager<ItemApplicationRecipe>,IRecipeManager<ProcessingRecipe>,CommandStringDisplayable

Undocumented Interfaces

Iterable<Recipe>

Members

addJsonRecipe(name as string, mapData as MapData)
script.zs
// ItemApplicationManager.addJsonRecipe(name as string, mapData as MapData);
<recipetype:create:item_application>.addJsonRecipe(myString, myMapData);

Parameters:

name Type: string
mapData Type: MapData
addRecipe(name as string, outputs as Percentaged<IItemStack>[], block as IIngredient, heldItem as IIngredient, keepHeldItem as bool = false)
Adds a new item application recipe.
script.zs
// ItemApplicationManager.addRecipe(name as string, outputs as Percentaged<IItemStack>[], block as IIngredient, heldItem as IIngredient, keepHeldItem as bool = false);
<recipetype:create:item_application>.addRecipe("name", [<item:minecraft:dirt> % 50, <item:minecraft:diamond>], <item:minecraft:diamond_block>, <item:minecraft:emerald>, true);

Parameters:

name Type: string - The name of the recipe.
outputs Type: Percentaged<IItemStack>[] - The recipe outputs
block Type: IIngredient - The block to be applied on
heldItem Type: IIngredient - The item that needs to be held
keepHeldItem (optional) Type: bool - Should the item be consumed or not

Default Value: false

Getter
script.zs
// ItemApplicationManager.allRecipes as List<Recipe>
<recipetype:create:item_application>.allRecipes

Return Type: List<Recipe>

allRecipes() as List<Recipe>
script.zs
// ItemApplicationManager.allRecipes() as List<Recipe>;
<recipetype:create:item_application>.allRecipes();

Return Type: List<Recipe>

Getter
script.zs
// ItemApplicationManager.commandString as string
<recipetype:create:item_application>.commandString

Return Type: string

commandString() as string
script.zs
// ItemApplicationManager.commandString() as string;
<recipetype:create:item_application>.commandString();

Return Type: string

getRecipeByName(name as string) as Recipe
script.zs
// ItemApplicationManager.getRecipeByName(name as string) as Recipe;
<recipetype:create:item_application>.getRecipeByName(myString);

Parameters:

name Type: string

Return Type: Recipe

getRecipesByOutput(output as IIngredient) as List<Recipe>
script.zs
// ItemApplicationManager.getRecipesByOutput(output as IIngredient) as List<Recipe>;
<recipetype:create:item_application>.getRecipesByOutput(myIIngredient);

Parameters:

output Type: IIngredient

Return Type: List<Recipe>

Getter
script.zs
// ItemApplicationManager.recipeMap as Recipe[ResourceLocation]
<recipetype:create:item_application>.recipeMap

Return Type: Recipe[ResourceLocation]

recipeMap() as Recipe[ResourceLocation]
script.zs
// ItemApplicationManager.recipeMap() as Recipe[ResourceLocation];
<recipetype:create:item_application>.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
// ItemApplicationManager.registerRecipe(name as string, recipeBuilder as function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void);
<recipetype:create:item_application>.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
// ItemApplicationManager.remove(output as IIngredient);
<recipetype:create:item_application>.remove(myIIngredient);

Parameters:

output Type: IIngredient
removeAll()
script.zs
// ItemApplicationManager.removeAll();
<recipetype:create:item_application>.removeAll();
removeByInput(input as IItemStack)
script.zs
// ItemApplicationManager.removeByInput(input as IItemStack);
<recipetype:create:item_application>.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
// ItemApplicationManager.removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false);
<recipetype:create:item_application>.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
// ItemApplicationManager.removeByName(names as string[]);
<recipetype:create:item_application>.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
// ItemApplicationManager.removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false);
<recipetype:create:item_application>.removeByRegex(myString, myPredicate);

Parameters:

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

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