protected int countMobs() { int counter = 0; for (Mob m : VolatileEntities.getMobs()) { if (!m.isDead() && !m.getSpawnZone().isNull()) if ((m != null) && (m.getSpawnZone().equals(this.m))) { counter++; } } return counter; }