erindalc Posted May 22, 2015 Share Posted May 22, 2015 Hello everyone, I have recently taken up modding and I am having trouble finding a good tutorial on how to use APIs and how to import them into eclipse. I am trying to use CoFHCore and Thermal Foundation. I've seen several conflicting methods here and on the MC forums. To be clear: I do not want the API files as part of the mod, but I do want these mods as a dependency. Quote Link to comment Share on other sites More sharing options...
Toxicshadow Posted May 23, 2015 Share Posted May 23, 2015 Not to be rude because I might not understand your question but have you tried: import domain.package1.package2.Filename; In seriousness I think this is what you want: http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Fconcepts-13.htm if that doesn't help try [lmgtfy=where to place external resources in eclipse]this.[/lmgtfy] Quote http://imagizer.imageshack.com/img661/3383/gPcPiH.gif[/img] Link to comment Share on other sites More sharing options...
erindalc Posted May 23, 2015 Author Share Posted May 23, 2015 no...there was a specific way others did it. One was putting the files into the java/resources/api folder, but this isn't working for me. Another involved importing them via eclipse, which also didn't work. Quote Link to comment Share on other sites More sharing options...
Elix_x Posted May 23, 2015 Share Posted May 23, 2015 You go in eclipse project explorer, right click on Minecraft, new Src folder, folder name = src/api/java. Now you go to modding folder in wexplorer, open src/api/java, put your apis there. They will be avaible via eclipse and will not be packaged with your mod... Quote Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones Link to comment Share on other sites More sharing options...
Abastro Posted May 23, 2015 Share Posted May 23, 2015 Just set up the gradle dependency for that. See ForgeGradle section, it will help you a lot with gradle. Quote I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.