return new ItemStack(Items.lava_bucket);
}
return null;
}
if (block instanceof IFluidBlock) {
IFluidBlock flBlock = (IFluidBlock) block;
if (flBlock.canDrain(world, x, y, z)) {
ItemStack stack = new ItemStack(Items.bucket);
stack = FluidContainerRegistry.fillFluidContainer(flBlock.drain(world, x, y, z, false), stack);
if (stack != null) {
flBlock.drain(world, x, y, z, true);
return stack;
}
}
}
return null;