Posted May 22, 201510 yr 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.
May 23, 201510 yr 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] http://imagizer.imageshack.com/img661/3383/gPcPiH.gif[/img]
May 23, 201510 yr Author 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.
May 23, 201510 yr 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... Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
May 23, 201510 yr Just set up the gradle dependency for that. See ForgeGradle section, it will help you a lot with gradle. I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP) II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.
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.