ItemApplicationManager
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
import mods.create.ItemApplicationManager;Implemented Interfaces
ItemApplicationManager implements the following interfaces. That means all methods defined in these interfaces are also available in ItemApplicationManager
Methods
ItemApplicationManager.addJsonRecipe(name as string, mapData as MapData)| Parameter | Type | 
|---|---|
| Parametername | Typestring | 
| ParametermapData | TypeMapData | 
Adds a new item application recipe.
// ItemApplicationManager.addRecipe(name as string, outputs as Percentaged<IItemStack>[], block as IIngredient, heldItem as IIngredient, keepHeldItem as boolean)
<recipetype:create:item_application>.addRecipe("name", [<item:minecraft:dirt> % 50, <item:minecraft:diamond>], <item:minecraft:diamond_block>, <item:minecraft:emerald>, true);| Parameter | Type | Description | Optional | Default Value | 
|---|---|---|---|---|
| Parametername | Typestring | DescriptionThe name of the recipe. | Optionalfalse | Default Value | 
| Parameteroutputs | TypePercentaged<IItemStack>[] | DescriptionThe recipe outputs | Optionalfalse | Default Value | 
| Parameterblock | TypeIIngredient | DescriptionThe block to be applied on | Optionalfalse | Default Value | 
| ParameterheldItem | TypeIIngredient | DescriptionThe item that needs to be held | Optionalfalse | Default Value | 
| ParameterkeepHeldItem | Typeboolean | DescriptionShould the item be consumed or not | Optionaltrue | Default Valuefalse | 
Return Type: stdlib.List<T>
// ItemApplicationManager.getAllRecipes() as stdlib.List<T>
<recipetype:create:item_application>.getAllRecipes();Return Type: T
ItemApplicationManager.getRecipeByName(name as string) as T| Parameter | Type | 
|---|---|
| Parametername | Typestring | 
Return Type: T[ResourceLocation]
// ItemApplicationManager.getRecipeMap() as T[ResourceLocation]
<recipetype:create:item_application>.getRecipeMap();Return Type: stdlib.List<T>
ItemApplicationManager.getRecipesByOutput(output as IIngredient) as stdlib.List<T>| Parameter | Type | 
|---|---|
| Parameteroutput | TypeIIngredient | 
Registers a recipe using a builder approach.
ItemApplicationManager.registerRecipe(name as string, recipeBuilder as Consumer<ProcessingRecipeBuilder<T>>)| Parameter | Type | Description | 
|---|---|---|
| Parametername | Typestring | DescriptionThe name of the recipe. | 
| ParameterrecipeBuilder | TypeConsumer<ProcessingRecipeBuilder<T>> | DescriptionThe recipe builder. | 
ItemApplicationManager.remove(output as IIngredient)| Parameter | Type | 
|---|---|
| Parameteroutput | TypeIIngredient | 
// ItemApplicationManager.removeAll()
<recipetype:create:item_application>.removeAll();ItemApplicationManager.removeByInput(input as IItemStack)| Parameter | Type | 
|---|---|
| Parameterinput | TypeIItemStack | 
ItemApplicationManager.removeByModid(modid as string, exclude as Predicate<string>)| Parameter | Type | Optional | Default Value | 
|---|---|---|---|
| Parametermodid | Typestring | Optionalfalse | Default Value | 
| Parameterexclude | TypePredicate<string> | Optionaltrue | Default Value(name as string) as bool => false | 
ItemApplicationManager.removeByName(names as string[])| Parameter | Type | 
|---|---|
| Parameternames | Typestring[] | 
ItemApplicationManager.removeByRegex(regex as string, exclude as Predicate<string>)| Parameter | Type | Optional | Default Value | 
|---|---|---|---|
| Parameterregex | Typestring | Optionalfalse | Default Value | 
| Parameterexclude | TypePredicate<string> | Optionaltrue | Default Value(name as string) as bool => false | 
Properties
| Name | Type | Has Getter | Has Setter | 
|---|---|---|---|
| NameallRecipes | Typestdlib.List<T> | Has Gettertrue | Has Setterfalse | 
| NamerecipeMap | TypeT[ResourceLocation] | Has Gettertrue | Has Setterfalse |