EmptyingManager

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

Description

Implements

EmptyingManager implements the following interfaces:

IProcessingRecipeManager<EmptyingRecipe>,IRecipeManager<ProcessingRecipe>,CommandStringDisplayable

Undocumented Interfaces

Iterable<Recipe>

Members

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

Parameters:

name Type: string
mapData Type: MapData
addRecipe(name as string, outputItem as Percentaged<IItemStack>, outputFluid as IFluidStack, inputContainer as IIngredient, duration as int = 100)
Adds an emptying recipe.
script.zs
// EmptyingManager.addRecipe(name as string, outputItem as Percentaged<IItemStack>, outputFluid as IFluidStack, inputContainer as IIngredient, duration as int = 100);
<recipetype:create:emptying>.addRecipe("emptier", <item:minecraft:diamond>, <fluid:minecraft:water>, <item:minecraft:dirt>, 200);

Parameters:

name Type: string - The name of the recipe.
outputItem Type: Percentaged<IItemStack> - The output item of the recipe.
outputFluid Type: IFluidStack - The output fluid of the recipe.
inputContainer Type: IIngredient - The input container of the recipe (what is being filled).
duration (optional) Type: int - The duration of the recipe in ticks (defaults to 100).

Default Value: 100

Getter
script.zs
// EmptyingManager.allRecipes as List<Recipe>
<recipetype:create:emptying>.allRecipes

Return Type: List<Recipe>

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

Return Type: List<Recipe>

Getter
script.zs
// EmptyingManager.commandString as string
<recipetype:create:emptying>.commandString

Return Type: string

commandString() as string
script.zs
// EmptyingManager.commandString() as string;
<recipetype:create:emptying>.commandString();

Return Type: string

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

Parameters:

name Type: string

Return Type: Recipe

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

Parameters:

output Type: IIngredient

Return Type: List<Recipe>

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

Return Type: Recipe[ResourceLocation]

recipeMap() as Recipe[ResourceLocation]
script.zs
// EmptyingManager.recipeMap() as Recipe[ResourceLocation];
<recipetype:create:emptying>.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
// EmptyingManager.registerRecipe(name as string, recipeBuilder as function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void);
<recipetype:create:emptying>.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 CTFluidIngredient)
Removes emptying recipes based on the output FluidStack.
script.zs
// EmptyingManager.remove(output as FluidIngredient);
<recipetype:create:emptying>.remove(<fluid:minecraft:water>);

Parameters:

output Type: FluidIngredient - The output FluidStack of the recipe.
remove(output as IIngredient)
script.zs
// EmptyingManager.remove(output as IIngredient);
<recipetype:create:emptying>.remove(myIIngredient);

Parameters:

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

Parameters:

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

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