IFluidHandler
Link to ifluidhandler
Diese Klasse importieren
Link to diese-klasse-importieren
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;
Methoden
Link to methoden
Name: drain
Return Type: IFluidStack
ZenScript CopyIFluidHandler.drain(maxDrain as int, action as IFluidHandlerAction) as IFluidStack
Parameter | Type | Beschreibung |
---|---|---|
Parameter maxDrain | Type int | Beschreibung No Description Provided |
Parameter action | Type IFluidHandlerAction | Beschreibung No Description Provided |
Name: drain
Return Type: IFluidStack
ZenScript CopyIFluidHandler.drain(resource as IFluidStack, action as IFluidHandlerAction) as IFluidStack
Parameter | Type | Beschreibung |
---|---|---|
Parameter resource | Type IFluidStack | Beschreibung No Description Provided |
Parameter action | Type IFluidHandlerAction | Beschreibung No Description Provided |
Name: fill
Return Type: int
ZenScript CopyIFluidHandler.fill(resource as IFluidStack, action as IFluidHandlerAction) as int
Parameter | Type | Beschreibung |
---|---|---|
Parameter resource | Type IFluidStack | Beschreibung No Description Provided |
Parameter action | Type IFluidHandlerAction | Beschreibung No Description Provided |
Name: getFluidInTank
Return Type: IFluidStack
ZenScript CopyIFluidHandler.getFluidInTank(tank as int) as IFluidStack
Parameter | Type | Beschreibung |
---|---|---|
Parameter tank | Type int | Beschreibung No Description Provided |
Name: getTankCapacity
Return Type: int
ZenScript CopyIFluidHandler.getTankCapacity(tank as int) as int
Parameter | Type | Beschreibung |
---|---|---|
Parameter tank | Type int | Beschreibung 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
Parameter | Type | Beschreibung |
---|---|---|
Parameter tank | Type int | Beschreibung No Description Provided |
Parameter stack | Type IFluidStack | Beschreibung No Description Provided |
Properties
Link to properties
Name | Type | Has Getter | Has Setter | Beschreibung |
---|---|---|---|---|
Name tanks | Type int | Has Getter true | Has Setter false | Beschreibung No Description Provided |