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.
Description
Implements
EmptyingManager
implements the following interfaces:
IProcessingRecipeManager<EmptyingRecipe>
,IRecipeManager<ProcessingRecipe>
,CommandStringDisplayable
Undocumented Interfaces
Iterable<Recipe>
Members
addRecipe(name as string, outputItem as Percentaged<IItemStack>, outputFluid as IFluidStack, inputContainer as IIngredient, duration as int = 100)
Adds an emptying recipe.
Parameters:
name: string
Type: string
- The name of the recipe. inputContainer: IIngredient
Type: IIngredient
- The input container of the recipe (what is being filled). duration: int
(optional) Type: int
- The duration of the recipe in ticks (defaults to 100).
Default Value: 100
Getter
Return Type:
string
commandString() as string
Return Type:
string
getRecipeByName(name as string) as Recipe
Parameters:
name: string
Type: string
Return Type:
Recipe
getRecipesByOutput(output as IIngredient) as List<Recipe>
Parameters:
output: IIngredient
Type: IIngredient
Return Type:
List<Recipe>
Getter
Return Type:
Recipe[ResourceLocation]
recipeMap() as Recipe[ResourceLocation]
Return Type:
Recipe[ResourceLocation]
registerRecipe(name as string, recipeBuilder as function(t as ProcessingRecipeBuilder<ProcessingRecipe>) as void)
Registers a recipe using a builder approach.
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 CTFluidIngredient)
Removes emptying recipes based on the output FluidStack.
Parameters:
remove(output as IIngredient)
Parameters:
output: IIngredient
Type: IIngredient
removeAll()
removeByInput(input as IItemStack)
Parameters:
input: IItemStack
Type: IItemStack
removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false)
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[])
Parameters:
names: string[]
Type: string[]
removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false)
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