public class BlockWrapper extends VoidFluidHandler
BlockLiquidWrapper or FluidBlockWrapper respectively.IFluidHandler.FluidAction| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected BlockPos |
blockPos |
protected BlockState |
state |
protected World |
world |
INSTANCE| コンストラクタと説明 |
|---|
BlockWrapper(BlockState state,
World world,
BlockPos blockPos) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
fill(FluidStack resource,
IFluidHandler.FluidAction action)
Fills fluid into internal tanks, distribution is left entirely to the IFluidHandler.
|
drain, drain, getFluidInTank, getTankCapacity, getTanks, isFluidValidprotected 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)
IFluidHandlerfill インタフェース内 IFluidHandlerfill クラス内 VoidFluidHandlerresource - FluidStack representing the Fluid and maximum amount of fluid to be filled.action - If SIMULATE, fill will only be simulated.