public interface IFluidBlock
BlockFluidBase
is encouraged.Modifier and Type | Method and Description |
---|---|
boolean |
canDrain(World world,
int x,
int y,
int z)
Check to see if a block can be drained.
|
FluidStack |
drain(World world,
int x,
int y,
int z,
boolean doDrain)
Attempt to drain the block.
|
Fluid |
getFluid()
Returns the Fluid associated with this Block.
|
Fluid getFluid()
FluidStack drain(World world, int x, int y, int z, boolean doDrain)
doDrain
- If false, the drain will only be simulated.boolean canDrain(World world, int x, int y, int z)
doDrain
- If false, the drain will only be simulated.