net.minecraftforge.liquids
Interface ITankContainer


public interface ITankContainer


Method Summary
 LiquidStack drain(ForgeDirection from, int maxDrain, boolean doDrain)
          Drains liquid out of internal tanks, distribution is left to the ITankContainer.
 LiquidStack drain(int tankIndex, int maxDrain, boolean doDrain)
          Drains liquid out of the specified internal tank.
 int fill(ForgeDirection from, LiquidStack resource, boolean doFill)
          Fills liquid into internal tanks, distribution is left to the ITankContainer.
 int fill(int tankIndex, LiquidStack resource, boolean doFill)
          Fills liquid into the specified internal tank.
 ILiquidTank[] getTanks(ForgeDirection direction)
           
 

Method Detail

fill

int fill(ForgeDirection from,
         LiquidStack resource,
         boolean doFill)
Fills liquid into internal tanks, distribution is left to the ITankContainer.

Parameters:
from - Orientation the liquid is pumped in from.
resource - LiquidStack representing the maximum amount of liquid filled into the ITankContainer
doFill - If false filling will only be simulated.
Returns:
Amount of resource that was filled into internal tanks.

fill

int fill(int tankIndex,
         LiquidStack resource,
         boolean doFill)
Fills liquid into the specified internal tank.

Parameters:
from - Orientation the liquid is pumped in from.
resource - LiquidStack representing the maximum amount of liquid filled into the ITankContainer
doFill - If false filling will only be simulated.
Returns:
Amount of resource that was filled into internal tanks.

drain

LiquidStack drain(ForgeDirection from,
                  int maxDrain,
                  boolean doDrain)
Drains liquid out of internal tanks, distribution is left to the ITankContainer.

Parameters:
from - Orientation the liquid is drained to.
maxDrain - Maximum amount of liquid to drain.
doDrain - If false draining will only be simulated.
Returns:
LiquidStack representing the liquid and amount actually drained from the ITankContainer

drain

LiquidStack drain(int tankIndex,
                  int maxDrain,
                  boolean doDrain)
Drains liquid out of the specified internal tank.

Parameters:
from - Orientation the liquid is drained to.
maxDrain - Maximum amount of liquid to drain.
doDrain - If false draining will only be simulated.
Returns:
LiquidStack representing the liquid and amount actually drained from the ITankContainer

getTanks

ILiquidTank[] getTanks(ForgeDirection direction)
Parameters:
direction - tank side: UNKNOWN for default tank set
Returns:
Array of LiquidTanks contained in this ITankContainer