else return currentCapacity;
return currentCapacity;
    public float getCurrentCapacity() {        if (cachedValueNeeded())            return cachedCapacity;        else            return currentCapacity;    }