Jump to content

Recommended Posts

Posted

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.

Posted

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?

 

5o5aQcq.png?1

Able to differentiate the difference of a sum and an integral.

Posted

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.

Posted

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.

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.