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.
|
float |
getFilledPercentage(World world,
int x,
int y,
int z)
Returns the amount of a single block is filled.
|
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.float getFilledPercentage(World world, int x, int y, int z)