FluidIngredient
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.
Static Methods
Create an empty fluid ingredient
Return Type: FluidIngredient
Create a fluid ingredient from a fluidstack
Returns:
Return Type: FluidIngredient
Parameter | Type | Description |
---|---|---|
Parameter fluid | Type IFluidStack | Description Fluidstack |
Create a fluid ingredient from a list of fluids
Returns:
Return Type: FluidIngredient
Parameter | Type | Description |
---|---|---|
Parameter fluidStacks | Type IFluidStack[] | Description array of fluids |
Parameter amount | Type int | Description amount of fluid |
Create a fluid ingredient from a fluid tag
Returns:
Return Type: FluidIngredient
Parameter | Type | Description |
---|---|---|
Parameter fluids | Type KnownTag<Fluid> | Description tag of fluids |
Parameter amount | Type int | Description amount of fluid |