IFluidHandler
@Deprecated public class FluidHandlerWrapper extends java.lang.Object implements IFluidHandler
IFluidHandler
to the new version.Modifier and Type | Field and Description |
---|---|
protected IFluidHandler |
handler
Deprecated.
|
protected EnumFacing |
side
Deprecated.
|
Constructor and Description |
---|
FluidHandlerWrapper(IFluidHandler handler,
EnumFacing side)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
FluidStack |
drain(FluidStack resource,
boolean doDrain)
Deprecated.
Drains fluid out of internal tanks, distribution is left entirely to the IFluidHandler.
|
FluidStack |
drain(int maxDrain,
boolean doDrain)
Deprecated.
Drains fluid out of internal tanks, distribution is left entirely to the IFluidHandler.
|
int |
fill(FluidStack resource,
boolean doFill)
Deprecated.
Fills fluid into internal tanks, distribution is left entirely to the IFluidHandler.
|
IFluidTankProperties[] |
getTankProperties()
Deprecated.
Returns an array of objects which represent the internal tanks.
|
protected final IFluidHandler handler
protected final EnumFacing side
public FluidHandlerWrapper(IFluidHandler handler, EnumFacing side)
public IFluidTankProperties[] getTankProperties()
IFluidHandler
getTankProperties
in interface IFluidHandler
public int fill(FluidStack resource, boolean doFill)
IFluidHandler
fill
in interface IFluidHandler
resource
- 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)
IFluidHandler
drain
in interface IFluidHandler
resource
- 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)
IFluidHandler
drain
in interface IFluidHandler
maxDrain
- Maximum amount of fluid to drain.doDrain
- If false, drain will only be simulated.