IFluidHandlerItem
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Implements
IFluidHandlerItem
implements the following interfaces:
Operators
Parameters:
tank: int
Type: int
- The tank to get the fluid of.
Return Type:
IFluidStack
Members
Return Type:
ItemStack
Returns: A new FluidStack representing the fluid that was drained along with how much was drained.
Parameters:
action: IFluidHandlerAction
Type: IFluidHandlerAction
- Determines if the drain is simulated or executed.
Return Type:
IFluidStack
Returns: A new FluidStack representing the fluid that was drained along with how much was drained.
Parameters:
maxDrain: int
Type: int
- How much fluid should be drained. action: IFluidHandlerAction
Type: IFluidHandlerAction
- Determines if the drain is simulated or executed.
Return Type:
IFluidStack
Returns: The amount of the fluid that will be used by the fill.
Parameters:
action: IFluidHandlerAction
Type: IFluidHandlerAction
- Determines if the fill is simulated or executed.
Return Type:
int
Returns: The fluid in the tank.
Parameters:
tank: int
Type: int
- The tank to get the fluid of.
Return Type:
IFluidStack
Returns: The capacity of the given tank.
Parameters:
tank: int
Type: int
- The tank to get the capacity of.
Return Type:
int
Returns: true if the fluid is valid, false otherwise.
Parameters:
tank: int
Type: int
- The tank to check.
Return Type:
bool
A single handler can have many tanks holding different fluids
Return Type:
int