SequencedAssemblyRecipeBuilder
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.createtweaker.SequencedAssemblyRecipeBuilder;
Members
addOutput(output as IItemStack, weight as float) as SequencedAssemblyRecipeBuilder
Adds an output to the recipe.script.zs
Returns: This builder for further chaining.
// SequencedAssemblyRecipeBuilder.addOutput(output as IItemStack, weight as float) as SequencedAssemblyRecipeBuilder;mySequencedAssemblyRecipeBuilder.addOutput(myIItemStack, myFloat);
Parameters:
weight: float
Type: float
- The weight of the output.
Return Type:
SequencedAssemblyRecipeBuilder
addStep(builder as function(r as ProcessingRecipeBuilder<ProcessingRecipe>) as ProcessingRecipeBuilder<ProcessingRecipe>) as SequencedAssemblyRecipeBuilder
Adds a step to the recipe.script.zs
Returns: This builder for further chaining.
// SequencedAssemblyRecipeBuilder.addStep<T : ProcessingRecipe>(builder as function(r as ProcessingRecipeBuilder<ProcessingRecipe>) as ProcessingRecipeBuilder<ProcessingRecipe>) as SequencedAssemblyRecipeBuilder;mySequencedAssemblyRecipeBuilder.addStep<T>(myFunction);
Parameters:
builder: function(r as ProcessingRecipeBuilder<ProcessingRecipe>) as ProcessingRecipeBuilder<ProcessingRecipe>
Type: function(r as ProcessingRecipeBuilder<ProcessingRecipe>) as ProcessingRecipeBuilder<ProcessingRecipe>
- The recipe builder to allow configuration of the recipe.
Return Type:
SequencedAssemblyRecipeBuilder
addStep() as SequencedAssemblyRecipeBuilder
Adds a step to the recipe.script.zs
Returns: This builder for further chaining.
// SequencedAssemblyRecipeBuilder.addStep<T : ProcessingRecipe>() as SequencedAssemblyRecipeBuilder;mySequencedAssemblyRecipeBuilder.addStep<T>();
Return Type:
SequencedAssemblyRecipeBuilder
loops(loops as int) as SequencedAssemblyRecipeBuilder
Sets the amount of loops the recipe has.script.zs
Returns: This builder for further chaining.
mySequencedAssemblyRecipeBuilder.loops(myInt);
Parameters:
loops: int
Type: int
- The amount of loops the recipe has.
Return Type:
SequencedAssemblyRecipeBuilder
require(ingredient as IIngredient) as SequencedAssemblyRecipeBuilder
Sets that the recipe requires the given ingredient.script.zs
Returns: This builder for further chaining.
// SequencedAssemblyRecipeBuilder.require(ingredient as IIngredient) as SequencedAssemblyRecipeBuilder;mySequencedAssemblyRecipeBuilder.require(myIIngredient);
Parameters:
Return Type:
SequencedAssemblyRecipeBuilder
transitionTo(item as Item) as SequencedAssemblyRecipeBuilder
Sets the transition item of the sequence.script.zs
Returns: This builder for further chaining.
// SequencedAssemblyRecipeBuilder.transitionTo(item as ItemDefinition) as SequencedAssemblyRecipeBuilder;mySequencedAssemblyRecipeBuilder.transitionTo(myItem);
Parameters:
Return Type:
SequencedAssemblyRecipeBuilder