Question related to Bluestone API
Victorious3 opened this issue ยท 6 comments
I'm currently trying to add BluePower support to my mod IntegratedCircuits. In order to do that, I'd like to support BluePower's bundled wires as well, those may connect to the circuits, depending on how it is configured. The circuit itself is a multipart. Here's an image to illustrate what I'm talking about (Project:Red interacts just fine):
I looked around the API for a while and I don't think it's yet possible, correct me if I'm wrong. Another thing I noticed is that your wires don't seem to call canConnectRedstone(int arg0)
from IRedstonePart
which results in wires connecting to the wrong sides where only bundled should be allowed.
The new API is done and available in the NewMultipart branch. I wouldn't suggest using it until we merge it into master and release a couple of builds with it, as we might have to change some things if there are many issues.
By the way, in NMP (and in the first versions we release), bundled wire will be disabled. The backend is harder to code than the uninsulated/insulated wires' but your circuits should work perfectly once they are enabled again ^^
Good to know! I'll look into it once it is ready and provide some feedback on how well it interacts with FMP.
Okay! :P
I was thinking of closing the issue once we merged but being a dev question it should be ok, as not that many people are going to look through the issues and ask the same question before we actually merge.
NewMultipart has already been merged into master but I wouldn't suggest using the bundled API yet. I'm still working on it ^^
That part of the mod is currently undergoing an almost complete rewrite. I'm not sure how far along this is right now, although the API's you need will be getting moved. @amadornes can probably give you more details on where he's at and what you'd need to do to support BP.
As Q says, I'm currently rewriting the entire Bluestone API. I'm working on making it much easier to implement than the old one and more functional.
All the power transfer code will be done in the background so you'll just need to implement a couple of interfaces and everything should work automatically.
I'm hoping to have it done by the end of this week, though I'm not sure if it'll be possible because I have quite a lot of exams this week and the next one. I'll keep you updated ;)