Jump to content

[1.7.2] Can't find Minecraft's native packages/classes in Eclipse


satyreyes

Recommended Posts

Windows 7, 64-bit.

 

It's my first time modding Minecraft and I'm trying to add some smelting recipes.  It's tough to find a tutorial with code that works in the current version of Forge, so I thought I'd go look at the syntax used in net.minecraft.item.crafting.FurnaceRecipes.  But I can't find any vanilla Minecraft code in the directory to which I pointed Eclipse:

 

width=197 height=481http://i70.photobucket.com/albums/i117/satyreyes/forge-eclipse-structure_zps100a2883.png[/img]

 

All of my import statements are working fine -- but I can't see what I'm importing!  Have I installed Forge incorrectly?

 

I acknowledge that I'm new at Java.  I hope this isn't a "go learn Java" kind of question, and that someone will be able to answer it in the spirit of helping a man teach himself to fish. :)

Link to comment
Share on other sites

Thank you, that's the push I needed!  I had checked the Referenced Libraries, but most of them didn't look Minecraft-specific.  If anyone else has the same trouble, the path in Eclipse is Minecraft/Referenced Libraries/forgeSrc-1.7.2-10.12.0.1024.jar (or the numbering of your build of Forge).

Link to comment
Share on other sites

I find it easier to browse by traversing /build/tmp/recompSrc/  because in Eclipse package explorer everything is organized in neat folders.

 

Also, you probably know but rather than browsing the packages or folders for something you can usually just have Eclipse find it: if you want to see the source for something that is referenced in code that you're viewing you can just right-click on the class or method and choose Open Declaration.  And of course just use an Eclipse search.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

  • 2 months later...

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.