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.createtweaker.FluidIngredient;

Implemented Interfaces

Link to implemented-interfaces

FluidIngredient implements the following interfaces. That means all methods defined in these interfaces are also available in FluidIngredient

  • Predicate

Link to getMatchingFluidStacks

Name: getMatchingFluidStacks

Return Type: stdlib.List<IFluidStack>

ZenScript
Copy
// FluidIngredient.getMatchingFluidStacks() as stdlib.List<IFluidStack>

myFluidIngredient.getMatchingFluidStacks();

Link to getRequiredAmount

Name: getRequiredAmount

Return Type: int

ZenScript
Copy
// FluidIngredient.getRequiredAmount() as int

myFluidIngredient.getRequiredAmount();

Name: test

Return Type: boolean

ZenScript
Copy
FluidIngredient.test(t as IFluidStack) as boolean
ParameterType
Parameter
t
Type
IFluidStack
NameTypeHas GetterHas Setter
Name
matchingFluidStacks
Type
stdlib.List<IFluidStack>
Has Getter
true
Has Setter
false
Name
requiredAmount
Type
int
Has Getter
true
Has Setter
false