src/main/java/dev/rlnt/energymeter/meter/MeterTile.java
private boolean hasValidOutput() {
        for (LazyOptional<IEnergyStorage> cap : outputCache.values()) {
            if (cap != null) return true;
        }
        return false;
    }
/**
     * Checks if the output cache has at least one output which is still valid.
     *
     * @return true if there is at least one valid output, false otherwise
     */
Checks if the output cache has at least one output which is still valid.
@return true if there is at least one valid output, false otherwise
Checks if the output cache has at least one output which is still valid . @return true if there is at least one valid output false otherwise
private boolean hasValidOutput() {
        for (LazyOptional<IEnergyStorage> cap : outputCache.values()) {
            if (cap != null) return true;
        }
        return false;
    }
private boolean hasValidOutput ( ) { for ( LazyOptional < IEnergyStorage > cap : outputCache . values ( ) ) { if ( cap != null ) return true ; } return false ; }
Checks if the output cache has at least one output which is still valid.
Checks if the output cache has at least one output which is still valid .