PressingManager
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
PressingManager
implements the following interfaces:
IProcessingRecipeManager<PressingRecipe>
,IRecipeManager<ProcessingRecipe>
,CommandStringDisplayable
Undocumented Interfaces
Iterable<Recipe>
Members
addRecipe(name as string, outputs as Percentaged<IItemStack>[], input as IIngredientWithAmount, duration as int = 100)
Adds a pressing recipe.
Parameters:
name: string
Type: string
- The name of the recipe. duration: int
(optional) Type: int
- The duration of the recipe (default 100 ticks).
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 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