public int removeMobs(ArrayList<Object> mobTypes, boolean removeAll)
	{
		int numMobs = 0;
		
		for (MMWorld world : MMComponent.getLimiter().getWorlds())
		{
			for (LivingEntity entity : world.getWorld().getLivingEntities())
			{
				MobType mob = MobType.valueOf(entity);
				ExtendedEntityType type = ExtendedEntityType.valueOf(entity);
				
				boolean flag = mobTypes.contains(mob) && (removeAll || !LimiterConfig.ignoredMobs.contains(ExtendedEntityType.valueOf(entity)));
				
				if (flag || mobTypes.contains(type))
				{
					world.decrementMobCount(type, entity);
					
					entity.remove();
					++numMobs;
				}
			}
		}
		
		return numMobs;
	}