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.
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>>
// 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>>
ProcessingRecipeBuilder.duration(ticks as int) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>| Parameter | Type | Description | 
|---|---|---|
| Parameterticks | Typeint | DescriptionThe 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>>
ProcessingRecipeBuilder.output(fluidStack as IFluidStack) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>| Parameter | Type | Description | 
|---|---|---|
| ParameterfluidStack | TypeIFluidStack | DescriptionThe fluid to output. | 
Sets the recipe to output the given Percentaged<T> item.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ProcessingRecipeBuilder.output(item as Percentaged<IItemStack>) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>| Parameter | Type | Description | 
|---|---|---|
| Parameteritem | TypePercentaged<IItemStack> | DescriptionThe 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>>
ProcessingRecipeBuilder.require(ingredient as FluidIngredient) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>| Parameter | Type | Description | 
|---|---|---|
| Parameteringredient | TypeFluidIngredient | DescriptionThe 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>>
ProcessingRecipeBuilder.require(ingredient as IIngredient) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>| Parameter | Type | Description | 
|---|---|---|
| Parameteringredient | TypeIIngredient | DescriptionThe item ingredient to require. | 
Sets the recipe to require the specific HeatCondition.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ProcessingRecipeBuilder.requiresHeat(condition as HeatCondition) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>| Parameter | Type | Description | 
|---|---|---|
| Parametercondition | TypeHeatCondition | DescriptionThe heat condition of the recipe. | 
Sets the fluid ingredients of the recipe.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ProcessingRecipeBuilder.withFluidIngredients(ingredients as FluidIngredient[]) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>| Parameter | Type | Description | 
|---|---|---|
| Parameteringredients | TypeFluidIngredient[] | DescriptionThe fluid ingredients of the recipe. | 
Sets the fluid outputs of the recipe.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ProcessingRecipeBuilder.withFluidOutputs(outputs as IFluidStack[]) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>| Parameter | Type | Description | 
|---|---|---|
| Parameteroutputs | TypeIFluidStack[] | DescriptionThe fluid outputs of the recipe. | 
Sets the item ingredients of the recipe.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ProcessingRecipeBuilder.withItemIngredients(ingredients as IIngredient[]) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>| Parameter | Type | Description | 
|---|---|---|
| Parameteringredients | TypeIIngredient[] | DescriptionThe item ingredients of the recipe. | 
Sets the item outputs of the recipe.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ProcessingRecipeBuilder.withItemOutputs(outputs as Percentaged<IItemStack>[]) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>| Parameter | Type | Description | 
|---|---|---|
| Parameteroutputs | TypePercentaged<IItemStack>[] | DescriptionThe outputs of the recipe. | 
Sets the single item output of the recipe.
Returns: This builder for further chaining.
Return Type: ProcessingRecipeBuilder<ProcessingRecipe<Container>>
ProcessingRecipeBuilder.withSingleItemOutput(output as IItemStack) as ProcessingRecipeBuilder<ProcessingRecipe<Container>>| Parameter | Type | Description | 
|---|---|---|
| Parameteroutput | TypeIItemStack | DescriptionThe single item output of this recipe. |