Импорт класса

Link to импорт-класса

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
Параметр
stack
Тип
IFluidStack
Описание
No Description Provided

Свойства

Link to свойства

НазваниеТипИмеет GetterИмеет SetterОписание
Название
tanks
Тип
int
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided