public float getBV(Entity entity) {
public double getBV(Entity entity) {
    public float getBV(Entity entity) {        if (bv != BV_VARIABLE) {            return bv;        }        // check for known formulas        if (hasFlag(F_HATCHET)) {            return ((float)Math.ceil(entity.getWeight() / 5.0) * 1.5f);        } else if (hasFlag(F_TARGCOMP)) {            // 20% of direct_fire weaponry BV (half for rear-facing)            double fFrontBV = 0.0, fRearBV = 0.0;            for (Enumeration e = entity.getWeapons(); e.hasMoreElements(); ) {                Mounted m = (Mounted)e.nextElement();                WeaponType wt = (WeaponType)m.getType();                if (wt.hasFlag(WeaponType.F_DIRECT_FIRE)) {                    if (m.isRearMounted()) {                        fRearBV += wt.getBV(entity);                    } else {                        fFrontBV += wt.getBV(entity);                    }                }            }            if (fFrontBV > fRearBV) {                return (float)(fFrontBV * 0.2 + fRearBV * 0.1);            } else {                return (float)(fRearBV * 0.2 + fFrontBV * 0.1);            }        }        // maybe it's 0        return 0;    }