Applied Energistics 2

Applied Energistics 2

137M Downloads

How to implement wireless, ideally directional, ME connectivity (like a QNB), *without* using core AE classes or code?

ReikaKalseki opened this issue ยท 5 comments

commented

I have received a request to make the CC world rift be able to wirelessly transfer ME data. I have absolutely no idea how to do this - looking at the QNB and AE2Stuff code has not helped.

Also, is directional connectivity (that is, one side connects to one network, another to a different network), like in the screenshot above, possible?

commented

Is that for directionality, or any kind of wireless connectivity?

commented

Not possible.

commented

Not possible in regards to your actual question about "without core classes/code" as everything related to grid connection is handled by the AE core. So no user has to actually care about anything related to it directly (and probably to prevent breaking it due to incomplete implementations).

Forcing a connection between two gridnodes is possible, by itself it would be a non directional connection. But these can be considered internal connections and it is up to you how you expose your gridnode for external connections.

commented

Nondirectionality is fine. But by "without core code" I mean without explicitly referencing any AE class that is not part of the API - whether it be extending a core AE tile class, or implementing non-API interfaces, or calling non-API methods.

What would happen if two tiles (opposite ends of the rift) share the same grid node object?

commented

No and this should be obvious through the API. Every gridnode is linked to exactly one tile entity through the IGridBlock/IGridHost (location etc). Otherwise AE cannot traverse to neighbour blocks.

Non worldaccessible gridnodes might be used for it. But it is way harder to implement it correctly instead of just using 2 gridnodes.

I simply do not have time currently to provide a copy&paste implementation, therefore I would recommend looking at AE2Stuff or PneumaticCraft as both are using wireless connection and both are pretty trivial implementations. QNBs are probably not the ideal example, due to their multiblock structure.