Modifier and Type | Method and Description |
---|---|
FluidStack |
drain(int maxDrain,
boolean doDrain) |
int |
fill(FluidStack resource,
boolean doFill) |
int |
getCapacity() |
FluidStack |
getFluid() |
int |
getFluidAmount() |
FluidTankInfo |
getInfo()
Returns a wrapper object
FluidTankInfo containing the capacity of the tank and the
FluidStack it holds. |
FluidStack getFluid()
int getFluidAmount()
int getCapacity()
FluidTankInfo getInfo()
FluidTankInfo
containing the capacity of the tank and the
FluidStack it holds.
Should prevent manipulation of the IFluidTank. See FluidTank
.int fill(FluidStack resource, boolean doFill)
resource
- FluidStack attempting to fill the tank.doFill
- If false, the fill will only be simulated.FluidStack drain(int maxDrain, boolean doDrain)
maxDrain
- Maximum amount of fluid to be removed from the container.doFill
- If false, the fill will only be simulated.