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, getTankProperties
protected final Block block
protected final World world
protected final BlockPos blockPos
public int fill(FluidStack resource, boolean doFill)
IFluidHandler
fill
in interface IFluidHandler
fill
in interface IFluidTank
fill
in class VoidFluidHandler
resource
- FluidStack representing the Fluid and maximum amount of fluid to be filled.doFill
- If false, fill will only be simulated.