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 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
Static Methods
Link to static-methods
Name: of
Return Type: FluidIngredient
ZenScript Copy// FluidIngredient.of() as FluidIngredient
FluidIngredient.of();
Name: of
Return Type: FluidIngredient
ZenScript CopyFluidIngredient.of(fluids as Fluid[]) as FluidIngredient
Parameter | Type |
---|---|
Parameter fluids | Type Fluid[] |
Name: of
Return Type: FluidIngredient
ZenScript CopyFluidIngredient.of(fluids as IFluidStack[]) as FluidIngredient
Parameter | Type |
---|---|
Parameter fluids | Type IFluidStack[] |
Name: single
Return Type: FluidIngredient
ZenScript CopyFluidIngredient.single(fluid as Fluid) as FluidIngredient
Parameter | Type |
---|---|
Parameter fluid | Type Fluid |
Name: single
Return Type: FluidIngredient
ZenScript CopyFluidIngredient.single(stack as IFluidStack) as FluidIngredient
Parameter | Type |
---|---|
Parameter stack | Type IFluidStack |
Name: tag
Return Type: FluidIngredient
ZenScript CopyFluidIngredient.tag(tag as KnownTag<Fluid>) as FluidIngredient
Parameter | Type |
---|---|
Parameter tag | Type KnownTag<Fluid> |
Casters
Link to casters
Result Type | Is Implicit |
---|---|
Result Type FluidIngredient | Is Implicit true |
Methods
Link to methods
Name: asCTFluidIngredient
Return Type: FluidIngredient
ZenScript CopyFluidIngredient.asCTFluidIngredient(amount as int) as FluidIngredient
Parameter | Type |
---|---|
Parameter amount | Type int |
Name: test
Return Type: boolean
ZenScript CopyFluidIngredient.test(fluidStack as invalid) as boolean
Parameter | Type |
---|---|
Parameter fluidStack | Type invalid |
Properties
Link to properties
Name | Type | Has Getter | Has 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 |