for (Enumeration e = mech.getMisc(); e.hasMoreElements(); ) { Mounted m = (Mounted)e.nextElement(); EquipmentType etype = m.getType(); if (etype.getName()==EquipmentType.getStructureTypeName(EquipmentType.T_STRUCTURE_ENDO_STEEL)) type = EquipmentType.T_STRUCTURE_ENDO_STEEL; }
    private static Structure getStructure(Mech mech)    {        int type = mech.getStructureType();        int flag = 0;        if (mech.isClan())            flag |= Structure.CLAN_STRUCTURE;        return new Structure(type, flag);    }