DeployerApplicationManager
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.DeployerApplicationManager;
Description
Implements
DeployerApplicationManager
implements the following interfaces:
IProcessingRecipeManager<DeployerApplicationRecipe>
,IRecipeManager<ProcessingRecipe>
,CommandStringDisplayable
Undocumented Interfaces
Iterable<Recipe>
Members
addRecipe(name as string, processedItem as IIngredient, heldItem as IIngredient, outputs as Percentaged<IItemStack>[], keepHeldItem as bool = false)
Adds a new deployer application recipe.script.zs
// DeployerApplicationManager.addRecipe(name as string, processedItem as IIngredient, heldItem as IIngredient, outputs as Percentaged<IItemStack>[], keepHeldItem as bool = false);<recipetype:create:deploying>.addRecipe("name", <item:minecraft:air>, <item:minecraft:diamond>, [<item:minecraft:dirt> % 50], true);
Parameters:
name: string
Type: string
- The name of the recipe keepHeldItem: bool
(optional) Type: bool
- Should the held item be consumed
Default Value: false
Getter
allRecipes() as List<Recipe>
Getter
// DeployerApplicationManager.commandString as string<recipetype:create:deploying>.commandString
Return Type:
string
commandString() as string
// DeployerApplicationManager.commandString() as string;<recipetype:create:deploying>.commandString();
Return Type:
string
getRecipesByOutput(output as IIngredient) as List<Recipe>
<recipetype:create:deploying>.getRecipesByOutput(myIIngredient);
Parameters:
output: IIngredient
Type: IIngredient
Return Type:
List<Recipe>
Getter
<recipetype:create:deploying>.recipeMap
Return Type:
Recipe[ResourceLocation]
recipeMap() as Recipe[ResourceLocation]
registerRecipe(name as string, recipeBuilder as function(t as ProcessingRecipeBuilder<DeployerApplicationRecipe>) as void, function as DeployerRecipeFunction)
Registers a recipe using a builder approach.script.zs
// DeployerApplicationManager.registerRecipe(name as string, recipeBuilder as function(t as ProcessingRecipeBuilder<DeployerApplicationRecipe>) as void, function as DeployerRecipeFunction);<recipetype:create:deploying>.registerRecipe(myString, myConsumer, myDeployerRecipeFunction);
Parameters:
name: string
Type: string
- The name of the recipe. recipeBuilder: function(t as ProcessingRecipeBuilder<DeployerApplicationRecipe>) as void
Type: function(t as ProcessingRecipeBuilder<DeployerApplicationRecipe>) as void
- The recipe builder. function: DeployerRecipeFunction
Type: DeployerRecipeFunction
registerRecipe(name as string, recipeBuilder as function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void)
Registers a recipe using a builder approach.script.zs
// DeployerApplicationManager.registerRecipe(name as string, recipeBuilder as function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void);<recipetype:create:deploying>.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:deploying>.remove(myIIngredient);
Parameters:
output: IIngredient
Type: IIngredient
removeAll()
// DeployerApplicationManager.removeAll();<recipetype:create:deploying>.removeAll();
removeByInput(input as IItemStack)
<recipetype:create:deploying>.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)
// DeployerApplicationManager.removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false);<recipetype:create:deploying>.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[])
// DeployerApplicationManager.removeByName(names as string[]);<recipetype:create:deploying>.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)
// DeployerApplicationManager.removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false);<recipetype:create:deploying>.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