YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraftforge.liquids.ILiquidTank Interface Reference
Inheritance diagram for net.minecraftforge.liquids.ILiquidTank:
net.minecraftforge.liquids.LiquidTank

Public Member Functions

LiquidStack getLiquid ()
 
int getCapacity ()
 
int fill (LiquidStack resource, boolean doFill)
 
LiquidStack drain (int maxDrain, boolean doDrain)
 
int getTankPressure ()
 

Detailed Description

A tank is the unit of interaction with liquid inventories.

Author
cpw

Member Function Documentation

LiquidStack net.minecraftforge.liquids.ILiquidTank.drain ( int  maxDrain,
boolean  doDrain 
)
Parameters
maxDrain
doDrain
Returns
Null if nothing was drained, otherwise a LiquidStack containing the drained.

Implemented in net.minecraftforge.liquids.LiquidTank.

int net.minecraftforge.liquids.ILiquidTank.fill ( LiquidStack  resource,
boolean  doFill 
)
Parameters
resource
doFill
Returns
Amount of liquid used for filling.

Implemented in net.minecraftforge.liquids.LiquidTank.

int net.minecraftforge.liquids.ILiquidTank.getCapacity ( )
Returns
capacity of this tank

Implemented in net.minecraftforge.liquids.LiquidTank.

LiquidStack net.minecraftforge.liquids.ILiquidTank.getLiquid ( )
Returns
LiquidStack representing the liquid contained in the tank, null if empty.

Implemented in net.minecraftforge.liquids.LiquidTank.

int net.minecraftforge.liquids.ILiquidTank.getTankPressure ( )

Positive values indicate a positive liquid pressure (liquid wants to leave this tank) Negative values indicate a negative liquid pressure (liquid wants to fill this tank) Zero indicates no pressure

Returns
a number indicating tank pressure

Implemented in net.minecraftforge.liquids.LiquidTank.


The documentation for this interface was generated from the following file: