SequencedAssemblyManager
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
SequencedAssemblyManager
implements the following interfaces:
IRecipeManager<SequencedAssemblyRecipe>
,CommandStringDisplayable
Undocumented Interfaces
Iterable<Recipe>
Members
addRecipe(builder as SequencedAssemblyRecipeBuilder)
Adds the recipe that the builder built.
Parameters:
builder: SequencedAssemblyRecipeBuilder
Type: SequencedAssemblyRecipeBuilder
- The builder that defines the recipe. builder(name as string) as SequencedAssemblyRecipeBuilder
Gets a sequenced assembly recipe builder.
Returns: A builder used to make sequenced assembly recipes.
Parameters:
name: string
Type: string
- The name of the recipe.
Return Type:
SequencedAssemblyRecipeBuilder
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 SequencedAssemblyRecipeBuilder) as void)
Registers a recipe with the given name and is built by the consumer.
Parameters:
name: string
Type: string
- The name of the recipe. recipeBuilder: function(t as SequencedAssemblyRecipeBuilder) as void
Type: function(t as SequencedAssemblyRecipeBuilder) as void
- A consumer that builds the recipe. 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