net.minecraftforge.liquids
Interface ILiquidTank
- All Known Implementing Classes:
- LiquidTank
public interface ILiquidTank
getLiquid
LiquidStack getLiquid()
- Returns:
- LiquidStack representing the liquid contained in the tank, null if empty.
setLiquid
void setLiquid(LiquidStack liquid)
setCapacity
void setCapacity(int capacity)
getCapacity
int getCapacity()
fill
int fill(LiquidStack resource,
boolean doFill)
- Parameters:
resource
- doFill
-
- Returns:
- Amount of liquid used for filling.
drain
LiquidStack drain(int maxDrain,
boolean doDrain)
- Parameters:
maxDrain
- doDrain
-
- Returns:
- Null if nothing was drained, otherwise a LiquidStack containing the drained.