ProcessingRecipeBuilder

Importing the class

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.

script.zs
import mods.createtweaker.ProcessingRecipeBuilder;

Methods

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>>

script.zs
// ProcessingRecipeBuilder.averageProcessingDuration() as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
myProcessingRecipeBuilder.averageProcessingDuration();

Sets the duration of the recipe in ticks.

Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>

script.zs
ProcessingRecipeBuilder.duration(ticks as int) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ParameterTypeDescription
Parameter
ticks
Type
int
Description
The duration of the recipe in ticks.

Sets the recipe to output the given IFluidStack.

Returns: This builder for futher chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>

script.zs
ProcessingRecipeBuilder.output(fluidStack as IFluidStack) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ParameterTypeDescription
Parameter
fluidStack
Type
IFluidStack
Description
The fluid to output.

Sets the recipe to output the given Percentaged<T> item.

Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>

script.zs
ProcessingRecipeBuilder.output(item as Percentaged<IItemStack>) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ParameterTypeDescription
Parameter
item
Type
Percentaged<IItemStack>
Description
The item to output.

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>>

script.zs
ProcessingRecipeBuilder.require(ingredient as FluidIngredient) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ParameterTypeDescription
Parameter
ingredient
Type
FluidIngredient
Description
The fluid ingredient to 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>>

script.zs
ProcessingRecipeBuilder.require(ingredient as IIngredient) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ParameterTypeDescription
Parameter
ingredient
Type
IIngredient
Description
The item ingredient to require.

Sets the recipe to require the specific HeatCondition.

Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>

script.zs
ProcessingRecipeBuilder.requiresHeat(condition as HeatCondition) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ParameterTypeDescription
Parameter
condition
Type
HeatCondition
Description
The heat condition of the recipe.

Sets the fluid ingredients of the recipe.

Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>

script.zs
ProcessingRecipeBuilder.withFluidIngredients(ingredients as FluidIngredient[]) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ParameterTypeDescription
Parameter
ingredients
Type
FluidIngredient[]
Description
The fluid ingredients of the recipe.

Sets the fluid outputs of the recipe.

Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>

script.zs
ProcessingRecipeBuilder.withFluidOutputs(outputs as IFluidStack[]) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ParameterTypeDescription
Parameter
outputs
Type
IFluidStack[]
Description
The fluid outputs of the recipe.

Sets the item ingredients of the recipe.

Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>

script.zs
ProcessingRecipeBuilder.withItemIngredients(ingredients as IIngredient[]) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ParameterTypeDescription
Parameter
ingredients
Type
IIngredient[]
Description
The item ingredients of the recipe.

Sets the item outputs of the recipe.

Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>

script.zs
ProcessingRecipeBuilder.withItemOutputs(outputs as Percentaged<IItemStack>[]) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ParameterTypeDescription
Parameter
outputs
Type
Percentaged<IItemStack>[]
Description
The outputs of the recipe.

Sets the single item output of the recipe.

Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>

script.zs
ProcessingRecipeBuilder.withSingleItemOutput(output as IItemStack) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ParameterTypeDescription
Parameter
output
Type
IItemStack
Description
The single item output of this recipe.