Fluid
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.Fluid;
Implements
Undocumented Interfaces
IFluidExtension
Operators
*(amount as int) as IFluidStack
Creates a new script.zs
IFluidStack
with the given amount of fluid.// (Fluid * (amount as int)) as IFluidStackmyFluid * myInt
Parameters:
amount: int
Type: int
Return Type:
IFluidStack
Members
Getter
// Fluid.bucket as ItemDefinitionmyFluid.bucket
Return Type:
ItemDefinition
bucket() as Item
Getter
// Fluid.commandString as stringmyFluid.commandString
Return Type:
string
makeStack(amount as int) as IFluidStack
Creates a new script.zs
IFluidStack
with the given amount of fluid.Returns: a new (immutable) IFluidStack
myFluid.makeStack(1000);
Parameters:
amount: int
Type: int
Return Type:
IFluidStack
Getter
// Fluid.registryName as ResourceLocationmyFluid.registryName
Return Type:
ResourceLocation
registryName() as ResourceLocation