Importing the class

Link to 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.

ZenScript
Copy
import mods.exnihilosequentia.FluidItemRecipe;

Name: create

Create a recipe name for the new recipe

Return Type: FluidItemRecipe

ZenScript
Copy
FluidItemRecipe.create(recipeId as string) as FluidItemRecipe
ParameterTypeDescription
Parameter
recipeId
Type
string
Description
name of recipe

Name: setFluidInTank

Sets the fluid that should be in the barrel

Return Type: FluidItemRecipe

ZenScript
Copy
FluidItemRecipe.setFluidInTank(fluidInTank as IFluidStack) as FluidItemRecipe
ParameterTypeDescription
Parameter
fluidInTank
Type
IFluidStack
Description
fluid in Tank

Name: setInputItem

Sets the catalyst to create a new block

Return Type: FluidItemRecipe

ZenScript
Copy
FluidItemRecipe.setInputItem(inputItem as IIngredient) as FluidItemRecipe
ParameterTypeDescription
Parameter
inputItem
Type
IIngredient
Description
Catalyst

Name: setResult

Sets the result block that should be generated

Return Type: FluidItemRecipe

ZenScript
Copy
FluidItemRecipe.setResult(result as IItemStack) as FluidItemRecipe
ParameterTypeDescription
Parameter
result
Type
IItemStack
Description
block or item