/*     */   @EventHandler(priority=EventPriority.HIGHEST)
/*     */   public void onFoodLevelChange(FoodLevelChangeEvent event)
/*     */   {
/* 252 */     if ((event.getEntity() instanceof Player))
/*     */     {
/* 254 */       Player player = (Player)event.getEntity();
/*     */ 
/* 256 */       if (!event.isCancelled())
/*     */       {
/* 258 */         if (Main.getAPI().isBeingSpectated(player))
/*     */         {
/* 260 */           for (Player p : Main.getAPI().getSpectators(player))
/*     */           {
/* 262 */             p.setFoodLevel(event.getFoodLevel());
/*     */           }
/*     */         }
/*     */       }
/*     */     }
/*     */   }