public class BlockLiquidWrapper extends java.lang.Object implements IFluidHandler
ItemBucket.onItemRightClick(World, EntityPlayer, EnumHand)| Modifier and Type | Field and Description | 
|---|---|
protected BlockLiquid | 
blockLiquid  | 
protected BlockPos | 
blockPos  | 
protected World | 
world  | 
| Constructor and Description | 
|---|
BlockLiquidWrapper(BlockLiquid blockLiquid,
                  World world,
                  BlockPos blockPos)  | 
| 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. 
 | 
IFluidTankProperties[] | 
getTankProperties()
Returns an array of objects which represent the internal tanks. 
 | 
protected final BlockLiquid blockLiquid
protected final World world
protected final BlockPos blockPos
public BlockLiquidWrapper(BlockLiquid blockLiquid, World world, BlockPos blockPos)
public IFluidTankProperties[] getTankProperties()
IFluidHandlergetTankProperties in interface IFluidHandlerpublic int fill(FluidStack resource, boolean doFill)
IFluidHandlerfill in interface IFluidHandlerresource - 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 IFluidHandlermaxDrain - Maximum amount of fluid to drain.doDrain - If false, drain will only be simulated.