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.api.fluid.Fluid;

Name: getBucket

Return Type: ItemDefinition

ZenScript
Copy
// Fluid.getBucket() as ItemDefinition

myFluid.getBucket();

Name: getRegistryName

Return Type: ResourceLocation

ZenScript
Copy
// Fluid.getRegistryName() as ResourceLocation

myFluid.getRegistryName();

Name: isIn

Return Type: boolean

ZenScript
Copy
Fluid.isIn(tag as KnownTag<Fluid>) as boolean
参数类型
参数
tag #标签
类型
KnownTag<Fluid>

Name: isSame

Return Type: boolean

ZenScript
Copy
Fluid.isSame(other as Fluid) as boolean
参数类型
参数
other
类型
Fluid
名称类型可获得可设置
名称
bucket
类型
ItemDefinition
可获得
true
可设置
false
名称
commandString #命令字符串
类型
string
可获得
true
可设置
false
名称
registryName
类型
资源位置
可获得
true
可设置
false