Applied Energistics 2

Applied Energistics 2

137M Downloads

AEApi question: How to get outer grid from main grid

indiscrete-void opened this issue ยท 2 comments

commented

API

Version: RV6

Description

I'm trying to create visualisation tool in my mod. Currently i need to get relatively outer grid from main grid, to get all info about subnetwork. I figured out, that EnergyGridCache::providers can give me info about all nodes which carrying only energy, but not channels. But even with these nodes, if node is connected at side of cable from main network(red) calling it's function GridNode::getGrid() will only give me inner(main) network, but not subnetwork. Here is screen shot of network setup
Screenshot 2019-04-07 at 22 33 07

My question is: How i can get list of grids of all subnetworks connected to main network?

commented

There is none.

commented

( Just for case if someone, in 3 hundred years will need this to .... IDN, maybe for their evil plan ๐Ÿ˜ˆ )
I'll leave this here:
SubnetHelper.txt

And here is usage:
TopologyUtils.txt