weaponList.add(wn);
String heatText = Integer.toString(currentHeatBuildup); if (currentHeatBuildup > en.getHeatCapacityWithWater()) { heatText += "*";
    public void displayMech(Entity en) {        // update pointer to weapons        this.weapons = en.getWeaponList();        this.entity = en;                    // update weapon list        weaponList.removeAll();        m_chAmmo.removeAll();        m_chAmmo.setEnabled(false);                for(int i = 0; i < weapons.size(); i++) {            Mounted mounted = (Mounted)weapons.elementAt(i);            WeaponType wtype = (WeaponType)mounted.getType();            String wn = mounted.getDesc()                         + " [" + en.getLocationAbbr(mounted.getLocation()) + "]";            // determine shots left & total shots left            if (wtype.getAmmoType() != AmmoType.T_NA) {                int shotsLeft = 0;                if (mounted.getLinked() != null && !mounted.getLinked().isDumping()) {                    shotsLeft = mounted.getLinked().getShotsLeft();                }                                EquipmentType typeUsed = mounted.getLinked() == null ? null : mounted.getLinked().getType();                int totalShotsLeft = entity.getTotalAmmoOfType(typeUsed);                                wn += " (" + shotsLeft + "/" + totalShotsLeft + ")";            }            // Fire Mode - lots of things have variable modes            if (wtype.hasModes()) {                wn += " " + mounted.curMode();            }                weaponList.add(wn);        }    }