IFluidHandler
Link to ifluidhandler
Importare la Classe
Link to importare-la-classe
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 Copyimport crafttweaker.api.capability.IFluidHandler;
Metodi
Link to metodi
Name: drain
Return Type: IFluidStack
ZenScript CopyIFluidHandler.drain(maxDrain as int, action as IFluidHandlerAction) as IFluidStack
Parametro | Tipo | Descrizione |
---|---|---|
Parametro maxDrain | Tipo int | Descrizione No Description Provided |
Parametro action | Tipo IFluidHandlerAction | Descrizione No Description Provided |
Name: drain
Return Type: IFluidStack
ZenScript CopyIFluidHandler.drain(resource as IFluidStack, action as IFluidHandlerAction) as IFluidStack
Parametro | Tipo | Descrizione |
---|---|---|
Parametro resource | Tipo IFluidStack | Descrizione No Description Provided |
Parametro action | Tipo IFluidHandlerAction | Descrizione No Description Provided |
Name: fill
Return Type: int
ZenScript CopyIFluidHandler.fill(resource as IFluidStack, action as IFluidHandlerAction) as int
Parametro | Tipo | Descrizione |
---|---|---|
Parametro resource | Tipo IFluidStack | Descrizione No Description Provided |
Parametro action | Tipo IFluidHandlerAction | Descrizione No Description Provided |
Name: getFluidInTank
Return Type: IFluidStack
ZenScript CopyIFluidHandler.getFluidInTank(tank as int) as IFluidStack
Parametro | Tipo | Descrizione |
---|---|---|
Parametro tank | Tipo int | Descrizione No Description Provided |
Name: getTankCapacity
Return Type: int
ZenScript CopyIFluidHandler.getTankCapacity(tank as int) as int
Parametro | Tipo | Descrizione |
---|---|---|
Parametro tank | Tipo int | Descrizione No Description Provided |
Name: getTanks
Return Type: int
ZenScript Copy// IFluidHandler.getTanks() as int
myIFluidHandler.getTanks();
Name: isFluidValid
Return Type: boolean
ZenScript CopyIFluidHandler.isFluidValid(tank as int, stack as IFluidStack) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro tank | Tipo int | Descrizione No Description Provided |
Parametro stack | Tipo IFluidStack | Descrizione No Description Provided |
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome tanks | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |