ProcessingRecipeBuilder
Link to processingrecipebuilder
导入类
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.ProcessingRecipeBuilder;
使用方式
Link to 使用方式
Name: averageProcessingDuration
Sets the duration of the recipe to the average processing duration, which is 100 ticks.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ZenScript Copy// ProcessingRecipeBuilder.averageProcessingDuration() as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
myProcessingRecipeBuilder.averageProcessingDuration();
Name: duration
Sets the duration of the recipe in ticks.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ZenScript CopyProcessingRecipeBuilder.duration(ticks as int) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
参数 | 类型 | 描述 |
---|---|---|
参数 ticks | 类型 int | 描述 The duration of the recipe in ticks. |
Name: output
Sets the recipe to output the given IFluidStack.
Returns: This builder for futher chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ZenScript CopyProcessingRecipeBuilder.output(fluidStack as IFluidStack) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
参数 | 类型 | 描述 |
---|---|---|
参数 fluidStack | 类型 IFluidStack | 描述 The fluid to output. |
Name: output
Sets the recipe to output the given Percentaged<T> item.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ZenScript CopyProcessingRecipeBuilder.output(item as Percentaged<IItemStack>) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
参数 | 类型 | 描述 |
---|---|---|
参数 item | 类型 Percentaged<IItemStack> | 描述 The item to output. |
Name: require
Sets the recipe to require the given fluid ingredient.
This can be chained multiple times for multiple ingredients.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ZenScript CopyProcessingRecipeBuilder.require(ingredient as FluidIngredient) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
参数 | 类型 | 描述 |
---|---|---|
参数 ingredient | 类型 FluidIngredient | 描述 The fluid ingredient to require. |
Name: require
Sets the recipe to require the given item ingredient.
This can be chained multiple times for multiple ingredients.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ZenScript CopyProcessingRecipeBuilder.require(ingredient as IIngredient) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
参数 | 类型 | 描述 |
---|---|---|
参数 ingredient | 类型 材料(IIngredient) | 描述 The item ingredient to require. |
Name: requiresHeat
Sets the recipe to require the specific HeatCondition.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ZenScript CopyProcessingRecipeBuilder.requiresHeat(condition as HeatCondition) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
参数 | 类型 | 描述 |
---|---|---|
参数 condition | 类型 HeatCondition | 描述 The heat condition of the recipe. |
Name: withFluidIngredients
Sets the fluid ingredients of the recipe.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ZenScript CopyProcessingRecipeBuilder.withFluidIngredients(ingredients as FluidIngredient[]) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
参数 | 类型 | 描述 |
---|---|---|
参数 ingredients | 类型 FluidIngredient[] | 描述 The fluid ingredients of the recipe. |
Name: withFluidOutputs
Sets the fluid outputs of the recipe.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ZenScript CopyProcessingRecipeBuilder.withFluidOutputs(outputs as IFluidStack[]) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
参数 | 类型 | 描述 |
---|---|---|
参数 outputs | 类型 IFluidStack[] | 描述 The fluid outputs of the recipe. |
Name: withItemIngredients
Sets the item ingredients of the recipe.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ZenScript CopyProcessingRecipeBuilder.withItemIngredients(ingredients as IIngredient[]) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
参数 | 类型 | 描述 |
---|---|---|
参数 ingredients | 类型 IIngredient[] | 描述 The item ingredients of the recipe. |
Name: withItemOutputs
Sets the item outputs of the recipe.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ZenScript CopyProcessingRecipeBuilder.withItemOutputs(outputs as Percentaged<IItemStack>[]) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
参数 | 类型 | 描述 |
---|---|---|
参数 outputs | 类型 Percentaged<IItemStack>[] | 描述 The outputs of the recipe. |
Name: withSingleItemOutput
Sets the single item output of the recipe.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ZenScript CopyProcessingRecipeBuilder.withSingleItemOutput(output as IItemStack) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
参数 | 类型 | 描述 |
---|---|---|
参数 output(输出) | 类型 IItemstack | 描述 The single item output of this recipe. |