FluidIngredient
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.neoforge.api.item.FluidIngredient;
Implements
Undocumented Interfaces
Predicate<FluidStack>
Members
asCTFluidIngredient(amount as int) as CTFluidIngredient
myFluidIngredient.asCTFluidIngredient(myInt);
Parameters:
amount: int
Type: int
Return Type:
FluidIngredient
implicit as CTFluidIngredient
// FluidIngredient as FluidIngredientmyFluidIngredient as CTFluidIngredient
Return Type:
FluidIngredient
Getter
// FluidIngredient.empty as boolmyFluidIngredient.empty
Return Type:
bool
Getter
// FluidIngredient.hasNoFluids as boolmyFluidIngredient.hasNoFluids
Return Type:
bool
static of() as FluidIngredient
static of(fluids as IFluidStack[]) as FluidIngredient
FluidIngredient.of(myIFluidStack[]);
Parameters:
fluids: IFluidStack[]
Type: IFluidStack[]
Return Type:
FluidIngredient
static of(fluids as Fluid[]) as FluidIngredient
FluidIngredient.of(myFluid[]);
Return Type:
FluidIngredient
Getter
// FluidIngredient.simple as boolmyFluidIngredient.simple
Return Type:
bool
static single(stack as IFluidStack) as FluidIngredient
FluidIngredient.single(myIFluidStack);
Parameters:
stack: IFluidStack
Type: IFluidStack
Return Type:
FluidIngredient
static single(fluid as Fluid) as FluidIngredient
FluidIngredient.single(myFluid);
Return Type:
FluidIngredient
Getter
// FluidIngredient.stacks as FluidStack[]myFluidIngredient.stacks
Return Type:
FluidStack[]
static tag(tag as KnownTag<Fluid>) as FluidIngredient
FluidIngredient.tag(myKnownTag);
Return Type:
FluidIngredient
test(fluidStack as FluidStack) as bool
// FluidIngredient.test(fluidStack as FluidStack) as bool;myFluidIngredient.test(myFluidStack);
Parameters:
fluidStack: FluidStack
Type: FluidStack
Return Type:
bool