Jump to content

[1.7.10] How do I use apis?


erindalc

Recommended Posts

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.

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

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.

×
×
  • Create New...

Important Information

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