if (entity.getMovementMode() == IEntityMovementMode.NAVAL) {
if (entity.getMovementMode() == IEntityMovementMode.NAVAL || entity.getMovementMode() == IEntityMovementMode.SUBMARINE) {
    public MechEntry genericFor(Entity entity) {        if (entity instanceof BattleArmor) {            return default_ba;        }        if (entity instanceof Infantry) {            return default_inf;        }        if (entity instanceof Protomech) {            return default_proto;        }        // mech, by weight        if (entity instanceof Mech) {            if (entity.getMovementMode() == IEntityMovementMode.QUAD) {                return default_quad;            }            if (entity.getWeightClass() == EntityWeightClass.WEIGHT_LIGHT) {                return default_light;            } else if (entity.getWeightClass() == EntityWeightClass.WEIGHT_MEDIUM) {                return default_medium;            } else if (entity.getWeightClass() == EntityWeightClass.WEIGHT_HEAVY) {                return default_heavy;            } else if (entity.getWeightClass() == EntityWeightClass.WEIGHT_ASSAULT) {                return default_assault;            }        }        if (entity.getMovementMode() == IEntityMovementMode.NAVAL) {            return default_naval;        }        if (entity.getMovementMode() == IEntityMovementMode.HYDROFOIL) {            return default_hydrofoil;        }        if (entity instanceof Tank) {            if (entity.getMovementMode() == IEntityMovementMode.TRACKED) {                if (entity.getWeightClass() == EntityWeightClass.WEIGHT_HEAVY) {                    return default_tracked_heavy;                } else if (entity.getWeightClass() == EntityWeightClass.WEIGHT_ASSAULT) {                    return default_tracked_assault;                } else return default_tracked;            }            if (entity.getMovementMode() == IEntityMovementMode.WHEELED) {                if (entity.getWeightClass() == EntityWeightClass.WEIGHT_HEAVY) {                    return default_wheeled_heavy;                } else return default_wheeled;            }            if (entity.getMovementMode() == IEntityMovementMode.HOVER) {                return default_hover;            }            if (entity.getMovementMode() == IEntityMovementMode.VTOL) {                return default_vtol;            }        }                    if (entity instanceof GunEmplacement) {            return default_gun_emplacement;        }                //TODO: better exception?        throw new IndexOutOfBoundsException("can't find an image for that mech"); //$NON-NLS-1$    }