@Override
 public void onBlockPlacedBy(
     World world, int x, int y, int z, EntityLivingBase player, ItemStack itemStack) {
   TileEntity tile = world.getBlockTileEntity(x, y, z);
   if (tile != null && tile instanceof TileEntityBasicProximitySensor) {
     ((TileEntityBasicProximitySensor) tile).setOwner(player.getEntityName());
   }
   super.onBlockPlacedBy(world, x, y, z, player, itemStack);
 }
 @Override
 public boolean onBlockActivated(
     World world,
     int x,
     int y,
     int z,
     EntityPlayer player,
     int par6,
     float par7,
     float par8,
     float par9) {
   if (!world.isRemote) {
     if (player.isSneaking()) {
       return false;
     }
     TileEntity tile = world.getBlockTileEntity(x, y, z);
     if (tile != null && tile instanceof TileEntityBasicProximitySensor) {
       ((TileEntityBasicProximitySensor) tile).onBlockClicked(player);
     }
   }
   return true;
 }