SizedFluidIngredient

Link to sizedfluidingredient

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.SizedFluidIngredient;

Name: of

Return Type: SizedFluidIngredient

ZenScript
Copy
SizedFluidIngredient.of(stack as invalid) as SizedFluidIngredient
ParameterType
Parameter
stack
Type
invalid

Name: of

Return Type: SizedFluidIngredient

ZenScript
Copy
SizedFluidIngredient.of(fluid as Fluid, amount as int) as SizedFluidIngredient
ParameterType
Parameter
fluid
Type
Fluid
Parameter
amount
Type
int

Name: of

Return Type: SizedFluidIngredient

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

Name: test

Return Type: boolean

ZenScript
Copy
SizedFluidIngredient.test(stack as IFluidStack) as boolean
ParameterType
Parameter
stack
Type
IFluidStack
NameTypeHas GetterHas Setter
Name
amount
Type
int
Has Getter
true
Has Setter
false
Name
fluids
Type
IFluidStack[]
Has Getter
true
Has Setter
false
Name
ingredient
Type
FluidIngredient
Has Getter
true
Has Setter
false