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.capability.IFluidHandler;

Name: drain

Return Type: IFluidStack

ZenScript
Copy
IFluidHandler.drain(maxDrain as int, action as IFluidHandlerAction) as IFluidStack
参数类型描述
参数
maxDrain
类型
int
描述
No Description Provided
参数
action
类型
IFluidHandlerAction
描述
No Description Provided

Name: drain

Return Type: IFluidStack

ZenScript
Copy
IFluidHandler.drain(resource as IFluidStack, action as IFluidHandlerAction) as IFluidStack
参数类型描述
参数
resource
类型
IFluidStack
描述
No Description Provided
参数
action
类型
IFluidHandlerAction
描述
No Description Provided

Name: fill

Return Type: int

ZenScript
Copy
IFluidHandler.fill(resource as IFluidStack, action as IFluidHandlerAction) as int
参数类型描述
参数
resource
类型
IFluidStack
描述
No Description Provided
参数
action
类型
IFluidHandlerAction
描述
No Description Provided

Name: getFluidInTank

Return Type: IFluidStack

ZenScript
Copy
IFluidHandler.getFluidInTank(tank as int) as IFluidStack
参数类型描述
参数
tank
类型
int
描述
No Description Provided

Name: getTankCapacity

Return Type: int

ZenScript
Copy
IFluidHandler.getTankCapacity(tank as int) as int
参数类型描述
参数
tank
类型
int
描述
No Description Provided

Name: getTanks

Return Type: int

ZenScript
Copy
// IFluidHandler.getTanks() as int

myIFluidHandler.getTanks();

Name: isFluidValid

Return Type: boolean

ZenScript
Copy
IFluidHandler.isFluidValid(tank as int, stack as IFluidStack) as boolean
参数类型描述
参数
tank
类型
int
描述
No Description Provided
参数
堆叠
类型
IFluidStack
描述
No Description Provided
名称类型可获得可设置描述
名称
tanks
类型
int
可获得
true
可设置
false
描述
No Description Provided