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.
import mods.create.SequencedAssemblyManager;
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.script.zs
<recipetype:create:sequenced_assembly>.addRecipe(<recipetype:create:sequenced_assembly>.builder("seq_blast_brick").transitionTo(<item:create:incomplete_large_cogwheel>).require(<item:create:andesite_alloy>).loops(3).addOutput(<item:create:large_cogwheel> * 6, 32).addOutput(<item:create:andesite_alloy>, 2).addOutput(<item:minecraft:andesite>, 1).addOutput(<item:create:cogwheel>, 1).addOutput(<item:minecraft:stick>, 1).addOutput(<item:minecraft:iron_nugget>, 1).addStep<mods.createtweaker.DeployerApplicationRecipe>((rb) => rb.require(<tag:items:minecraft:planks>)).addStep<mods.createtweaker.DeployerApplicationRecipe>((rb) => rb.require(<tag:items:minecraft:wooden_buttons>)).addStep<mods.createtweaker.CuttingRecipe>((rb) => rb.duration(50)).addStep<mods.createtweaker.FillingRecipe>((rb) => rb.require(<fluid:minecraft:water> * 50)));
Parameters:
builder: SequencedAssemblyRecipeBuilder
Type: SequencedAssemblyRecipeBuilder
- The builder that defines the recipe. Getter
allRecipes() as List<Recipe>
builder(name as string) as SequencedAssemblyRecipeBuilder
Gets a sequenced assembly recipe builder.script.zs
Returns: A builder used to make sequenced assembly recipes.
<recipetype:create:sequenced_assembly>.builder("sequenced");
Parameters:
name: string
Type: string
- The name of the recipe.
Return Type:
SequencedAssemblyRecipeBuilder
Getter
// SequencedAssemblyManager.commandString as string<recipetype:create:sequenced_assembly>.commandString
Return Type:
string
commandString() as string
// SequencedAssemblyManager.commandString() as string;<recipetype:create:sequenced_assembly>.commandString();
Return Type:
string
getRecipesByOutput(output as IIngredient) as List<Recipe>
<recipetype:create:sequenced_assembly>.getRecipesByOutput(myIIngredient);
Parameters:
output: IIngredient
Type: IIngredient
Return Type:
List<Recipe>
Getter
<recipetype:create:sequenced_assembly>.recipeMap
Return Type:
Recipe[ResourceLocation]
recipeMap() as 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.script.zs
// SequencedAssemblyManager.registerRecipe(name as string, recipeBuilder as function(t as SequencedAssemblyRecipeBuilder) as void);<recipetype:create:sequenced_assembly>.registerRecipe("build_sequence", (rb) => {rb.transitionTo(<item:minecraft:glass>);rb.require(<item:minecraft:arrow>);rb.loops(2);rb.addOutput(<item:minecraft:diamond>, 1);rb.addOutput(<item:minecraft:apple>, 1);rb.addStep<mods.createtweaker.CuttingRecipe>((rb1) => rb1.duration(50));rb.addStep<mods.createtweaker.PressingRecipe>((rb1) => rb1.duration(500));rb.addStep<mods.createtweaker.DeployerApplicationRecipe>((rb1) => rb1.require(<item:minecraft:dirt>));rb.addStep<mods.createtweaker.FillingRecipe>((rb1) => rb1.require(<fluid:minecraft:water> * 50))});
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)
<recipetype:create:sequenced_assembly>.remove(myIIngredient);
Parameters:
output: IIngredient
Type: IIngredient
removeAll()
// SequencedAssemblyManager.removeAll();<recipetype:create:sequenced_assembly>.removeAll();
removeByInput(input as IItemStack)
<recipetype:create:sequenced_assembly>.removeByInput(myIItemStack);
Parameters:
input: IItemStack
Type: IItemStack
removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false)
// SequencedAssemblyManager.removeByModid(modid as string, exclude as function(t as string) as bool = (name as string) as bool => false);<recipetype:create:sequenced_assembly>.removeByModid(myString, myPredicate);
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[])
// SequencedAssemblyManager.removeByName(names as string[]);<recipetype:create:sequenced_assembly>.removeByName(myString[]);
Parameters:
names: string[]
Type: string[]
removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false)
// SequencedAssemblyManager.removeByRegex(regex as string, exclude as function(t as string) as bool = (name as string) as bool => false);<recipetype:create:sequenced_assembly>.removeByRegex(myString, myPredicate);
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