Jump to content

[1.7.10] Using another mod's API


M4thG33k

Recommended Posts

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.

Link to comment
Share on other sites

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)...

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.