SequencedAssemblyRecipeBuilder
Link to sequencedassemblyrecipebuilder
导入类
Link to 导入类
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport mods.createtweaker.SequencedAssemblyRecipeBuilder;
使用方式
Link to 使用方式
Name: addOutput
Adds an output to the recipe.
Returns: This builder for further chaining.
Return Type: SequencedAssemblyRecipeBuilder
ZenScript CopySequencedAssemblyRecipeBuilder.addOutput(output as IItemStack, weight as float) as SequencedAssemblyRecipeBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 output(输出) | 类型 IItemstack | 描述 The item output. |
参数 weight | 类型 float | 描述 The weight of the output. |
Name: addStep
Adds a step to the recipe.
Returns: This builder for further chaining.
Return Type: SequencedAssemblyRecipeBuilder
ZenScript CopySequencedAssemblyRecipeBuilder.addStep<T : ProcessingRecipe>() as SequencedAssemblyRecipeBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 T | 类型 ProcessingRecipe | 描述 The type of recipe to add a step for. |
Name: addStep
Adds a step to the recipe.
Returns: This builder for further chaining.
Return Type: SequencedAssemblyRecipeBuilder
ZenScript CopySequencedAssemblyRecipeBuilder.addStep<T : ProcessingRecipe>(builder as Function<ProcessingRecipeBuilder<T>,ProcessingRecipeBuilder<T>>) as SequencedAssemblyRecipeBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 生成器 | 类型 Function<ProcessingRecipeBuilder<T>,ProcessingRecipeBuilder<T>> | 描述 The recipe builder to allow configuration of the recipe. |
参数 T | 类型 ProcessingRecipe | 描述 The type of recipe to add a step for. |
Name: loops
Sets the amount of loops the recipe has.
Returns: This builder for further chaining.
Return Type: SequencedAssemblyRecipeBuilder
ZenScript CopySequencedAssemblyRecipeBuilder.loops(loops as int) as SequencedAssemblyRecipeBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 loops | 类型 int | 描述 The amount of loops the recipe has. |
Name: require
Sets that the recipe requires the given ingredient.
Returns: This builder for further chaining.
Return Type: SequencedAssemblyRecipeBuilder
ZenScript CopySequencedAssemblyRecipeBuilder.require(ingredient as IIngredient) as SequencedAssemblyRecipeBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 ingredient | 类型 材料(IIngredient) | 描述 The ingredient to require. |
Name: transitionTo
Sets the transition item of the sequence.
Returns: This builder for further chaining.
Return Type: SequencedAssemblyRecipeBuilder
ZenScript CopySequencedAssemblyRecipeBuilder.transitionTo(item as ItemDefinition) as SequencedAssemblyRecipeBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 item | 类型 ItemDefinition | 描述 The item to transition to. |