How can you Import Forge Mods into Eclipse

Viewed 441
1 Answers

You can't do it easily because the mods is NOT open-source. In fact, it's All right reserved, so you are not allowed to do it. So do at your own risk.

1) Get the source code

You can ask to the original dev, but it's sure it will decline your question.

Else, you have to decompile the jar thanks to utilities like javadecompilers.com.

2) Create a new Java Project in eclipse

Create a blank java project

3) Copy/paste the code in your eclipse project

*The code obtain thanks to decompilation

4) Before using it, you should fix all decompilation issue.

Finally, I think it's a better idea to create a new one, specially because it will be faster to upgrade it in 1.17 or make more edition.

Related