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.

script.zs
import mods.createtweaker.FluidIngredient;

Implemented Interfaces

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

  • Predicate

Methods

Return Type: stdlib.List<IFluidStack>

script.zs
// FluidIngredient.getMatchingFluidStacks() as stdlib.List<IFluidStack>
myFluidIngredient.getMatchingFluidStacks();

Return Type: int

script.zs
// FluidIngredient.getRequiredAmount() as int
myFluidIngredient.getRequiredAmount();

Return Type: boolean

script.zs
FluidIngredient.test(t as IFluidStack) as boolean
ParameterTypeDescription
Parameter
t
Type
IFluidStack
Description
No Description Provided

Properties

NameTypeHas GetterHas SetterDescription
Name
matchingFluidStacks
Type
stdlib.List<IFluidStack>
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
requiredAmount
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided