public void onDamage(EntityDamageEvent e) { /* if(!(e.get.. instanceof Player)){ return; } if(e.getEntity() instanceof EnderDragon) { } else { } */ }