public interface IFluidTank
FluidTank
.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. |
@Nullable 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.@Nullable FluidStack drain(int maxDrain, boolean doDrain)
maxDrain
- Maximum amount of fluid to be removed from the container.doDrain
- If false, the drain will only be simulated.