@Override
 public void breakBlock(World par1World, int x, int y, int z, int blockID, int meta) {
   TileEntity te = par1World.getBlockTileEntity(x, y, z);
   if (te != null && te instanceof BucketTE) {
     BucketTE inv = (BucketTE) te;
     inv.removeBlock(par1World);
   }
   super.breakBlock(par1World, x, y, z, blockID, meta);
 }
 @Override
 public void onBlockPlacedBy(
     World world, int x, int y, int z, EntityLivingBase entityLiving, ItemStack stack) {
   TileEntity te = world.getBlockTileEntity(x, y, z);
   if (te instanceof BucketTE) {
     BucketTE inv = (BucketTE) te;
     inv.placeBlock(stack);
     if (entityLiving instanceof EntityPlayer) stack.stackSize--;
   }
 }