src/main/java/dev/rlnt/energymeter/component/SidedEnergyStorage.java
public static List<LazyOptional<SidedEnergyStorage>> create(ISidedEnergy parent) {
        List<LazyOptional<SidedEnergyStorage>> res = new ArrayList<>();
        for (Direction direction : Direction.values()) {
            res.add(LazyOptional.of(() -> new SidedEnergyStorage(parent, direction)));
        }
        return res;
    }
/**
     * Creates a new {@link SidedEnergyStorage} for each {@link Direction}.
     * Each of them will have the passed in parent and the direction linked to it.
     *
     * @param parent the parent {@link TileEntity} which implements {@link ISidedEnergy}
     * @return a {@link List} of all created {@link SidedEnergyStorage}s
     */
Creates a new  SidedEnergyStorage for each  Direction.
Each of them will have the passed in parent and the direction linked to it.

@param parent the parent  TileEntity which implements  ISidedEnergy
@return a  List of all created  SidedEnergyStorages
Creates a new SidedEnergyStorage for each Direction . Each of them will have the passed in parent and the direction linked to it . @param parent the parent TileEntity which implements ISidedEnergy @return a List of all created SidedEnergyStorages
public static List<LazyOptional<SidedEnergyStorage>> create(ISidedEnergy parent) {
        List<LazyOptional<SidedEnergyStorage>> res = new ArrayList<>();
        for (Direction direction : Direction.values()) {
            res.add(LazyOptional.of(() -> new SidedEnergyStorage(parent, direction)));
        }
        return res;
    }
public static List < LazyOptional < SidedEnergyStorage > > create ( ISidedEnergy parent ) { List < LazyOptional < SidedEnergyStorage > > res = new ArrayList < > ( ) ; for ( Direction direction : Direction . values ( ) ) { res . add ( LazyOptional . of ( ( ) -> new SidedEnergyStorage ( parent , direction ) ) ) ; } return res ; }
Creates a new {@link SidedEnergyStorage} for each {@link Direction}.
Creates a new { @link SidedEnergyStorage } for each { @link Direction } .