/*     */   @EventHandler
/*     */   public void onMobTarget(EntityTargetEvent event)
/*     */   {
/* 422 */     if ((event.getEntity() instanceof Monster))
/*     */     {
/* 424 */       if ((event.getTarget() instanceof Player))
/*     */       {
/* 426 */         if (Main.getAPI().isSpectating((Player)event.getTarget()))
/*     */         {
/* 428 */           event.setCancelled(true);
/*     */         }
/*     */       }
/*     */     }
/*     */   }