public class VoidFluidHandler extends java.lang.Object implements IFluidHandler, IFluidTank
| Modifier and Type | Field and Description |
|---|---|
static EmptyFluidHandler |
INSTANCE |
| Constructor and Description |
|---|
VoidFluidHandler() |
| Modifier and Type | Method and Description |
|---|---|
FluidStack |
drain(FluidStack resource,
boolean doDrain)
Drains fluid out of internal tanks, distribution is left entirely to the IFluidHandler.
|
FluidStack |
drain(int maxDrain,
boolean doDrain)
Drains fluid out of internal tanks, distribution is left entirely to the IFluidHandler.
|
int |
fill(FluidStack resource,
boolean doFill)
Fills fluid into internal tanks, distribution is left entirely to the IFluidHandler.
|
int |
getCapacity() |
FluidStack |
getFluid() |
int |
getFluidAmount() |
FluidTankInfo |
getInfo()
Returns a wrapper object
FluidTankInfo containing the capacity of the tank and the
FluidStack it holds. |
IFluidTankProperties[] |
getTankProperties()
Returns an array of objects which represent the internal tanks.
|
public static final EmptyFluidHandler INSTANCE
public IFluidTankProperties[] getTankProperties()
IFluidHandlergetTankProperties in interface IFluidHandlerpublic FluidStack getFluid()
getFluid in interface IFluidTankpublic int getFluidAmount()
getFluidAmount in interface IFluidTankpublic int getCapacity()
getCapacity in interface IFluidTankpublic FluidTankInfo getInfo()
IFluidTankFluidTankInfo containing the capacity of the tank and the
FluidStack it holds.
Should prevent manipulation of the IFluidTank. See FluidTank.getInfo in interface IFluidTankpublic int fill(FluidStack resource, boolean doFill)
IFluidHandlerfill in interface IFluidHandlerfill in interface IFluidTankresource - FluidStack representing the Fluid and maximum amount of fluid to be filled.doFill - If false, fill will only be simulated.public FluidStack drain(FluidStack resource, boolean doDrain)
IFluidHandlerdrain in interface IFluidHandlerresource - FluidStack representing the Fluid and maximum amount of fluid to be drained.doDrain - If false, drain will only be simulated.public FluidStack drain(int maxDrain, boolean doDrain)
IFluidHandlerdrain in interface IFluidHandlerdrain in interface IFluidTankmaxDrain - Maximum amount of fluid to drain.doDrain - If false, drain will only be simulated.