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 crafttweaker.neoforge.api.item.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

Name: of

Return Type: FluidIngredient

ZenScript
Copy
// FluidIngredient.of() as FluidIngredient

FluidIngredient.of();

Name: of

Return Type: FluidIngredient

ZenScript
Copy
FluidIngredient.of(fluids as Fluid[]) as FluidIngredient
ParameterType
Parameter
fluids
Type
Fluid[]

Name: of

Return Type: FluidIngredient

ZenScript
Copy
FluidIngredient.of(fluids as IFluidStack[]) as FluidIngredient
ParameterType
Parameter
fluids
Type
IFluidStack[]

Name: single

Return Type: FluidIngredient

ZenScript
Copy
FluidIngredient.single(fluid as Fluid) as FluidIngredient
ParameterType
Parameter
fluid
Type
Fluid

Name: single

Return Type: FluidIngredient

ZenScript
Copy
FluidIngredient.single(stack as IFluidStack) as FluidIngredient
ParameterType
Parameter
stack
Type
IFluidStack

Name: tag

Return Type: FluidIngredient

ZenScript
Copy
FluidIngredient.tag(tag as KnownTag<Fluid>) as FluidIngredient
ParameterType
Parameter
tag
Type
KnownTag<Fluid>
Result TypeIs Implicit
Result Type
FluidIngredient
Is Implicit
true

Link to asCTFluidIngredient

Name: asCTFluidIngredient

Return Type: FluidIngredient

ZenScript
Copy
FluidIngredient.asCTFluidIngredient(amount as int) as FluidIngredient
ParameterType
Parameter
amount
Type
int

Name: test

Return Type: boolean

ZenScript
Copy
FluidIngredient.test(fluidStack as invalid) as boolean
ParameterType
Parameter
fluidStack
Type
invalid
NameTypeHas GetterHas Setter
Name
empty
Type
boolean
Has Getter
true
Has Setter
false
Name
hasNoFluids
Type
boolean
Has Getter
true
Has Setter
false
Name
simple
Type
boolean
Has Getter
true
Has Setter
false
Name
stacks
Type
invalid[]
Has Getter
true
Has Setter
false