} else if (dataFile.getDataAsString("type")[0].equals("Clan Level 3")) { t.setTechLevel(TechConstants.T_CLAN_LEVEL_3);
    public Entity getEntity() throws EntityLoadingException {        Protomech t = new Protomech();        if (!dataFile.exists("name")) throw new EntityLoadingException("Could not find name block.");        t.setChassis(dataFile.getDataAsString("Name")[0]);        // Model is not strictly necessary.        if (dataFile.exists("Model") && dataFile.getDataAsString("Model")[0] != null) {             t.setModel(dataFile.getDataAsString("Model")[0]);        } else {             t.setModel("");        }        if (!dataFile.exists("year")) throw new EntityLoadingException("Could not find year block.");        t.setYear(dataFile.getDataAsInt("year")[0]);        if (!dataFile.exists("type")) throw new EntityLoadingException("Could not find type block.");        if (dataFile.getDataAsString("type")[0].equals("IS")) {            if (t.getYear() == 3025) {                t.setTechLevel(TechConstants.T_IS_LEVEL_1);            } else {                t.setTechLevel(TechConstants.T_IS_LEVEL_2);            }        } else {            t.setTechLevel(TechConstants.T_CLAN_LEVEL_2);        }        if (!dataFile.exists("tonnage")) throw new EntityLoadingException("Could not find weight block.");        t.setWeight(dataFile.getDataAsFloat("tonnage")[0]);        if (!dataFile.exists("BV")) throw new EntityLoadingException("Could not find BV block.");        t.setBattleValue( dataFile.getDataAsInt("BV")[0] );        /* 'Protos have only one motion type. **        if (!dataFile.exists("motion_type")) throw new EntityLoadingException("Could not find movement block.");        String sMotion = dataFile.getDataAsString("motion_type")[0];        int nMotion = -1;        for (int x = 0; x < MOVES.length; x++) {            if (sMotion.equals(MOVES[x])) {                nMotion = x;                break;            }        }        if (nMotion == -1) throw new EntityLoadingException("Invalid movment type: " + sMotion);        t.setMovementType(nMotion);        ** 'Protos have only one motion type. */        if (!dataFile.exists("cruiseMP")) throw new EntityLoadingException("Could not find cruiseMP block.");        t.setOriginalWalkMP(dataFile.getDataAsInt("cruiseMP")[0]);        if (dataFile.exists("jumpingMP"))            t.setOriginalJumpMP(dataFile.getDataAsInt("jumpingMP")[0]);        if (!dataFile.exists("armor") ) throw new EntityLoadingException("Could not find armor block.");        int[] armor = dataFile.getDataAsInt("armor");        boolean hasMainGun = false;        if ( Protomech.NUM_PMECH_LOCATIONS == armor.length ) {            hasMainGun = true;        }        else if ( Protomech.NUM_PMECH_LOCATIONS - 1 == armor.length ) {            hasMainGun = false;        }        else {            throw new EntityLoadingException("Incorrect armor array length");        }        t.setHasMainGun( hasMainGun );        // add the body to the armor array        for (int x = 0; x < armor.length; x++) {            t.initializeArmor(armor[x], x);        }        t.autoSetInternal();        String[] abbrs = t.getLocationNames();        for ( int loop = 0; loop < t.locations(); loop++ ) {            loadEquipment( t, abbrs[loop], loop );        }        return t;    }