Posted June 26, 201510 yr Greetings! I know I've asked a similar question to this before (but the solution for that one didn't translate here). I'm lacking the basic knowledge as to where you put another mod's API in order to access it and use it in your own code. For example, using NEI, things I've tried: putting the codechicken/nei/api folder in my src/main/java folder putting the entire NEI.jar inside my libs folder In both cases, I ran gradlew setupDecompWorkspace --refresh-dependencies, but to no avail. In the first case, the codechicken/nei/api folder in IntelliJ had no code, even though opening the location with the explorer showed all the code was there. There are other API's I would like to use (for redstone flux, etc), but I would like to get the basic concept down before attempting more than one API. As usual, thanks in advance! Able to differentiate the difference of a sum and an integral.
June 26, 201510 yr I don't know what happened with your apis, but normally they are installed: 1) If api is folder - drop it in src/api/java 2) If api is jar - (as far as i am doing it) link it in eclipse For me it's all i have to do (excluding ATs)... Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
June 26, 201510 yr Author So, I've tried dropping the NEI API folder into the src/api/java directory, but none of the files are appearing in IntelliJ. (Picture linked below.) Any ideas as to what may be causing this? Able to differentiate the difference of a sum and an integral.
June 26, 201510 yr Author I've also tried placing NEI's jar file in the libs directory (with extrautilites and waila from my previous screenshot), but I still could not access the API. Able to differentiate the difference of a sum and an integral.
June 26, 201510 yr Author I thought so? Maybe I don't understand what you mean when you say "refresh"... Able to differentiate the difference of a sum and an integral.
June 26, 201510 yr Author That sneaky sidebar That cleared everything up! Thanks for dealing with my easy problems. Able to differentiate the difference of a sum and an integral.
June 26, 201510 yr Author I guess things aren't tip-top shape, yet. Now when I attempt to run the program it crashes before even launching the MC window. Pastebin to the log: http://pastebin.com/AArhgP0i Any ideas why this could be? Able to differentiate the difference of a sum and an integral.
June 26, 201510 yr You need to have CodeChickenCore to make NEI work. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
June 26, 201510 yr Author I have it in my Eclipse/mods folder...do I need in libs/ instead? EDIT: Tried that, didn't fix anything, even after reloading the project. New Edit: Found the issue. I needed to move both CCC and CCL into the /libs/ folder. Able to differentiate the difference of a sum and an integral.
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.