public class BlockWrapper extends VoidFluidHandler
BlockLiquidWrapper
or FluidBlockWrapper
respectively.IFluidHandler.FluidAction
Modifier and Type | Field and Description |
---|---|
protected BlockPos |
blockPos |
protected BlockState |
state |
protected World |
world |
INSTANCE
Constructor and Description |
---|
BlockWrapper(BlockState state,
World world,
BlockPos blockPos) |
Modifier and Type | Method and Description |
---|---|
int |
fill(FluidStack resource,
IFluidHandler.FluidAction action)
Fills fluid into internal tanks, distribution is left entirely to the IFluidHandler.
|
drain, drain, getFluidInTank, getTankCapacity, getTanks, isFluidValid
protected final BlockState state
protected final World world
protected final BlockPos blockPos
public BlockWrapper(BlockState state, World world, BlockPos blockPos)
public int fill(FluidStack resource, IFluidHandler.FluidAction action)
IFluidHandler
fill
in interface IFluidHandler
fill
in class VoidFluidHandler
resource
- FluidStack representing the Fluid and maximum amount of fluid to be filled.action
- If SIMULATE, fill will only be simulated.