IFluidStack
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.api.fluid.IFluidStack;
Implements
IFluidStack
implements the following interfaces:
Operators
myIFluidStack | myCTFluidIngredient
Parameters:
other: FluidIngredient
Type: FluidIngredient
Return Type:
FluidIngredient
myIFluidStack in myIFluidStack
Parameters:
Return Type:
bool
// (IFluidStack * (amount as int)) as IFluidStackmyIFluidStack * myInt
Parameters:
amount: int
Type: int
- The amount to multiply this stack
Return Type:
IFluidStack
Members
// IFluidStack.amount as longmyIFluidStack.amount
Return Type:
long
// IFluidStack as FluidIngredientmyIFluidStack as CTFluidIngredient
Return Type:
FluidIngredient
Returns: A new Stack, that is mutable.
myIFluidStack.asMutable();
Return Type:
IFluidStack
Returns: A new stack, that contains the same info as this one
myIFluidStack.copy();
Return Type:
IFluidStack
// IFluidStack.empty as boolmyIFluidStack.empty
Return Type:
bool
Returns: The empty IFluidStack
IFluidStack.empty();
Return Type:
IFluidStack
// IFluidStack.hasTag as boolmyIFluidStack.hasTag
Return Type:
bool
// IFluidStack.isImmutable as boolmyIFluidStack.isImmutable
Return Type:
bool
// IFluidStack.isImmutable() as bool;myIFluidStack.isImmutable();
Return Type:
bool
Returns: true if this fluid contains the other fluid
myIFluidStack.matches(myIFluidStack);
Parameters:
Return Type:
bool
// IFluidStack.registryName as ResourceLocationmyIFluidStack.registryName
Return Type:
ResourceLocation
Returns: A new stack, or this stack, depending on if this stack is mutable
myIFluidStack.setAmount(1000);
Parameters:
amount: int
Type: int
- The amount to multiply this stack
Return Type:
IFluidStack
Returns: This FluidStack if it is mutable, a new one with the changed property otherwise
myIFluidStack.withTag({Display: {lore: ["Hello"]}});
Return Type:
IFluidStack