protected Vector<Long> getFreeWearingPositions(MOB target) { final Vector<Long> V = new Vector<Long>(); final Wearable.CODES codes = Wearable.CODES.instance(); final boolean[] pos = new boolean[codes.all_ordered().length]; for (int i = 0; i < pos.length; i++) if (target.freeWearPositions(codes.all_ordered()[i], (short) 0, (short) 0) > 0) pos[i] = false; else pos[i] = true; for (int i = 0; i < pos.length; i++) if (!pos[i]) V.addElement(Long.valueOf(codes.all_ordered()[i])); return V; }