net.minecraftforge.liquids

## Interface ILiquidTank

- All Known Implementing Classes:
    LiquidTank

  Deprecated.

      @Deprecated
      public interface ILiquidTank

  A tank is the unit of interaction with liquid inventories.
  Author:
    cpw

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `LiquidStack` | `drain(int maxDrain, boolean doDrain)` Deprecated.
    `int` | `fill(LiquidStack resource, boolean doFill)` Deprecated.
    `int` | `getCapacity()` Deprecated.
    `LiquidStack` | `getLiquid()` Deprecated.
    `int` | `getTankPressure()` Deprecated. 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

- - ### Method Detail

    - #### getLiquid

          LiquidStack getLiquid()

      Deprecated.
      Returns:
        LiquidStack representing the liquid contained in the tank, null if empty.

    - #### getCapacity

          int getCapacity()

      Deprecated.
      Returns:
        capacity of this tank

    - #### fill

          int fill(LiquidStack resource,
                 boolean doFill)

      Deprecated.
      Parameters:
        `resource` -
        `doFill` -
      Returns:
        Amount of liquid used for filling.

    - #### drain

          LiquidStack drain(int maxDrain,
                          boolean doDrain)

      Deprecated.
      Parameters:
        `maxDrain` -
        `doDrain` -
      Returns:
        Null if nothing was drained, otherwise a LiquidStack containing the drained.

    - #### getTankPressure

          int getTankPressure()

      Deprecated.
      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