FluidItemRecipe
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.exnihilosequentia.FluidItemRecipe;
Methods
Create a recipe name for the new recipe
Return Type: FluidItemRecipe
FluidItemRecipe.create(recipeId as string) as FluidItemRecipe
Parameter | Type | Description |
---|---|---|
Parameter recipeId | Type string | Description name of recipe |
Sets the fluid that should be in the barrel
Return Type: FluidItemRecipe
FluidItemRecipe.setFluidInTank(fluidInTank as IFluidStack) as FluidItemRecipe
Parameter | Type | Description |
---|---|---|
Parameter fluidInTank | Type IFluidStack | Description fluid in Tank |
Sets the catalyst to create a new block
Return Type: FluidItemRecipe
FluidItemRecipe.setInputItem(inputItem as IIngredient) as FluidItemRecipe
Parameter | Type | Description |
---|---|---|
Parameter inputItem | Type IIngredient | Description Catalyst |
Sets the result block that should be generated
Return Type: FluidItemRecipe
FluidItemRecipe.setResult(result as IItemStack) as FluidItemRecipe
Parameter | Type | Description |
---|---|---|
Parameter result | Type IItemStack | Description block or item |