@Deprecated public interface ITankContainer
Modifier and Type | Method and Description |
---|---|
LiquidStack |
drain(ForgeDirection from,
int maxDrain,
boolean doDrain)
Deprecated.
Drains liquid out of internal tanks, distribution is left to the ITankContainer.
|
LiquidStack |
drain(int tankIndex,
int maxDrain,
boolean doDrain)
Deprecated.
Drains liquid out of the specified internal tank.
|
int |
fill(ForgeDirection from,
LiquidStack resource,
boolean doFill)
Deprecated.
Fills liquid into internal tanks, distribution is left to the ITankContainer.
|
int |
fill(int tankIndex,
LiquidStack resource,
boolean doFill)
Deprecated.
Fills liquid into the specified internal tank.
|
ILiquidTank |
getTank(ForgeDirection direction,
LiquidStack type)
Deprecated.
Return the tank that this tank container desired to be used for the specified liquid type from the specified direction
|
ILiquidTank[] |
getTanks(ForgeDirection direction)
Deprecated.
|
int fill(ForgeDirection from, LiquidStack resource, boolean doFill)
from
- Orientation the liquid is pumped in from.resource
- LiquidStack representing the maximum amount of liquid filled into the ITankContainerdoFill
- If false filling will only be simulated.int fill(int tankIndex, LiquidStack resource, boolean doFill)
tankIndex
- the index of the tank to fillresource
- LiquidStack representing the maximum amount of liquid filled into the ITankContainerdoFill
- If false filling will only be simulated.LiquidStack drain(ForgeDirection from, int maxDrain, boolean doDrain)
from
- Orientation the liquid is drained to.maxDrain
- Maximum amount of liquid to drain.doDrain
- If false draining will only be simulated.LiquidStack drain(int tankIndex, int maxDrain, boolean doDrain)
tankIndex
- the index of the tank to drainmaxDrain
- Maximum amount of liquid to drain.doDrain
- If false draining will only be simulated.ILiquidTank[] getTanks(ForgeDirection direction)
direction
- tank side: UNKNOWN for default tank setLiquidTank
s contained in this ITankContainer for this directionILiquidTank getTank(ForgeDirection direction, LiquidStack type)
direction
- the directiontype
- the liquid type, null is always an acceptable value