FluidIngredient
Link to fluidingredient
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 Copyimport 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
Methods
Link to methods
Name: getMatchingFluidStacks
Return Type: stdlib.List<IFluidStack>
ZenScript Copy// FluidIngredient.getMatchingFluidStacks() as stdlib.List<IFluidStack>
myFluidIngredient.getMatchingFluidStacks();
Name: getRequiredAmount
Return Type: int
ZenScript Copy// FluidIngredient.getRequiredAmount() as int
myFluidIngredient.getRequiredAmount();
Name: test
Return Type: boolean
ZenScript CopyFluidIngredient.test(t as IFluidStack) as boolean
Parameter | Type |
---|---|
Parameter t | Type IFluidStack |
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name matchingFluidStacks | Type stdlib.List<IFluidStack> | Has Getter true | Has Setter false |
Name requiredAmount | Type int | Has Getter true | Has Setter false |