I'm making a tech based mod involving a lot of energy and so far I've been using wires that have pretty abysmal performance. They each have an energy storage and they just transfer energy into all storages next to them every tick. This works ok when using under 10 wires, but it's useless for transferring energy over any range. I'm wondering how I would make an energy network for my wires. I've found this post which is someone trying to do the same thing, unfortunately there aren't any responses to the topic.
I've also found their code here,
but I would like to know the best way of making a network, rather than deducing a functional way from someone else's code.
My current idea is to have an map of energy storages linked to a list of connected tile entities, stored in a worldSavedObject or something (I'll look into the saving part of it later).