Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I modify the source code to integrate with other mods? #277

Open
J09 opened this issue Aug 9, 2018 · 4 comments
Open

How do I modify the source code to integrate with other mods? #277

J09 opened this issue Aug 9, 2018 · 4 comments

Comments

@J09
Copy link

J09 commented Aug 9, 2018

Hello I wanted to modify the source code to integrate with electricalage how can I do that? Explaining: I wanted to change the voltage going through wire or get voltage going through wire and I wanted to get voltage from battery.

@boq
Copy link
Member

boq commented Aug 9, 2018

That's quite broad question. Usually that includes importing API from target mod (though only if there is public one) and creating adapters. For example, I suggest looking at rf2 package.

@J09
Copy link
Author

J09 commented Aug 9, 2018

What is the rf2 package? Sorry I’m not a pro lol

@boq
Copy link
Member

boq commented Aug 9, 2018

https://github.com/OpenMods/OpenPeripheral-Integration/tree/master/src/main/java/openperipheral/integration/cofh/energy

Though it seems electrical age does not provide proper API and it already has some ComputerCraft and OpenComputers support (though not one described here). So probably I wouldn't accept that into this repository. Are are allowed to make your modifications though (see licence).

@J09
Copy link
Author

J09 commented Aug 9, 2018

Ok one more question. How do I print how much power is still in a battery?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants