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.

script.zs
import mods.create.DeployerApplicationManager;

Description

Implements

DeployerApplicationManager implements the following interfaces:

IProcessingRecipeManager<DeployerApplicationRecipe>,IRecipeManager<ProcessingRecipe>,CommandStringDisplayable

Undocumented Interfaces

Iterable<Recipe>

Members

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

Parameters:

name Type: string
mapData Type: MapData
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 Type: string - The name of the recipe
processedItem Type: IIngredient - The item to be deployed onto
heldItem Type: IIngredient - The item to deploy with
outputs Type: Percentaged<IItemStack>[] - The output of the recipe
keepHeldItem (optional) Type: bool - Should the held item be consumed

Default Value: false

Getter
script.zs
// DeployerApplicationManager.allRecipes as List<Recipe>
<recipetype:create:deploying>.allRecipes

Return Type: List<Recipe>

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

Return Type: List<Recipe>

Getter
script.zs
// DeployerApplicationManager.commandString as string
<recipetype:create:deploying>.commandString

Return Type: string

commandString() as string
script.zs
// DeployerApplicationManager.commandString() as string;
<recipetype:create:deploying>.commandString();

Return Type: string

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

Parameters:

name Type: string

Return Type: Recipe

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

Parameters:

output Type: IIngredient

Return Type: List<Recipe>

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

Return Type: Recipe[ResourceLocation]

recipeMap() as Recipe[ResourceLocation]
script.zs
// DeployerApplicationManager.recipeMap() as Recipe[ResourceLocation];
<recipetype:create:deploying>.recipeMap();

Return Type: 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 Type: string - The name of the recipe.
recipeBuilder Type: function(t as ProcessingRecipeBuilder<DeployerApplicationRecipe>) as void - The recipe builder.
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 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
// DeployerApplicationManager.remove(output as IIngredient);
<recipetype:create:deploying>.remove(myIIngredient);

Parameters:

output Type: IIngredient
removeAll()
script.zs
// DeployerApplicationManager.removeAll();
<recipetype:create:deploying>.removeAll();
removeByInput(input as IItemStack)
script.zs
// DeployerApplicationManager.removeByInput(input as IItemStack);
<recipetype:create:deploying>.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
// 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 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
// DeployerApplicationManager.removeByName(names as string[]);
<recipetype:create:deploying>.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
// 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 Type: string
exclude (optional) Type: function(t as string) as bool

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