public class BlockWrapper extends VoidFluidHandler
BlockLiquidWrapper or FluidBlockWrapper respectively.| Modifier and Type | Field and Description |
|---|---|
protected Block |
block |
protected BlockPos |
blockPos |
protected World |
world |
INSTANCE| Constructor and Description |
|---|
BlockWrapper(Block block,
World world,
BlockPos blockPos) |
| Modifier and Type | Method and Description |
|---|---|
int |
fill(FluidStack resource,
boolean doFill)
Fills fluid into internal tanks, distribution is left entirely to the IFluidHandler.
|
drain, drain, getCapacity, getFluid, getFluidAmount, getInfo, getTankPropertiesprotected final Block block
protected final World world
protected final BlockPos blockPos
public int fill(FluidStack resource, boolean doFill)
IFluidHandlerfill in interface IFluidHandlerfill in interface IFluidTankfill in class VoidFluidHandlerresource - FluidStack representing the Fluid and maximum amount of fluid to be filled.doFill - If false, fill will only be simulated.