mech.addWeapon(new MountedWeapon(weaponType), Mech.getRearLocation(loc));
mech.addWeapon(new MountedWeapon(weaponType), mech.getRearLocation(loc));
    public Mech getMech() {        Mech mech = new Mech();            if(this.techYear == null || !this.techYear.equalsIgnoreCase("3025")) {            return null;        }            int firstSpace = this.name.indexOf(" ");        if(firstSpace != -1) {            mech.setName(this.name.substring(firstSpace).trim());            mech.setModel(this.name.substring(5, firstSpace).trim());        } else {            mech.setName(this.name.substring(5).trim());            mech.setModel(this.name.substring(5).trim());        }            mech.weight = (float)Integer.decode(this.tonnage.trim()).intValue();            mech.setOriginalWalkMP(Integer.parseInt(this.walkMP.trim()));        mech.setOriginalJumpMP(Integer.parseInt(this.jumpMP.trim()));        mech.heatSinks = Integer.parseInt(this.heatSinks.trim()) - 10;        decodeArmorAndInternals(mech, Mech.LOC_HEAD, headArmor);        decodeArmorAndInternals(mech, Mech.LOC_LARM, larmArmor);        decodeArmorAndInternals(mech, Mech.LOC_LT, ltArmor);        decodeRearArmor(mech, Mech.LOC_LTR, ltrArmor);        decodeArmorAndInternals(mech, Mech.LOC_CT, ctArmor);        decodeRearArmor(mech, Mech.LOC_CTR, ctrArmor);        decodeArmorAndInternals(mech, Mech.LOC_RT, rtArmor);        decodeRearArmor(mech, Mech.LOC_RTR, rtrArmor);        decodeArmorAndInternals(mech, Mech.LOC_RARM, rarmArmor);        decodeArmorAndInternals(mech, Mech.LOC_RLEG, rlegArmor);        decodeArmorAndInternals(mech, Mech.LOC_LLEG, llegArmor);            // remove arm actuators        for (int i = 0; i < equipData.length; i++) {            String eqName = new String(equipData[i]);            eqName = eqName.substring(5, 28).trim();                        if (eqName.equals("No Lower Right Arm")) {                mech.removeCriticals(Mech.LOC_RARM, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_LOWER_ARM));                mech.removeCriticals(Mech.LOC_RARM, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_HAND));            } else if (eqName.equals("No Lower Left Arm")) {                mech.removeCriticals(Mech.LOC_LARM, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_LOWER_ARM));                mech.removeCriticals(Mech.LOC_LARM, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_HAND));            } else if (eqName.equals("No Right Hand")) {                mech.removeCriticals(Mech.LOC_RARM, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_HAND));            } else if (eqName.equals("No Left Hand")) {                mech.removeCriticals(Mech.LOC_LARM, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, Mech.ACTUATOR_HAND));            }        }                // hmm, what to do with the rest of equipment list... I dunno.            // parse the critical hit slots        for (int i = 0; i < critData.length; i++) {            int loc = mech.getLocationFromAbbr(critData[i].substring(3, 5));            int slot = Integer.parseInt(critData[i].substring(5, 7));            boolean rearMounted = false;            String critName = critData[i].substring(7).trim();                  // is it a weapon?            if (critName.startsWith("(R) ")) {                rearMounted = true;                critName = critName.substring(4);            }            Weapon weaponType = Weapon.getWeaponByMepName(critName);            if (weaponType != null) {                if (rearMounted) {                    mech.addWeapon(new MountedWeapon(weaponType), Mech.getRearLocation(loc));                } else {                    mech.addWeapon(new MountedWeapon(weaponType), loc);                }            }                  // ammo?            Ammo ammo = Ammo.makeAmmo(critName);            if (ammo != null) {                mech.addAmmo(ammo, loc);            }                  // heat sink?            if (critName.equals("Heat Sink")) {                mech.addCritical(loc, new CriticalSlot(CriticalSlot.TYPE_SYSTEM,                                                       Mech.SYSTEM_HEAT_SINK));            }            // jump jet?            if (critName.equals("Jump Jet")) {                mech.addCritical(loc, new CriticalSlot(CriticalSlot.TYPE_SYSTEM,                                                       Mech.SYSTEM_JUMP_JET));            }        }        return mech;  }