Jump to content

Workspace setup issue with cpw.mods.fml* import


Alblaka

Recommended Posts

Trying to get a hang of the new setup with Forge (hailing back from the old days of using MCP via cmd).

I've ran with this tutorial so far. It's a bit dated, but +- does the job (and checking on the official Forge Docs later on, it's still msotly accurate).

However, after running the setupDecompWorkspace gradle command (etc etc), any java class I generate cannot import any of the FML classes that are supposed to be present (i.e. cpw.mods.fml.common.Mod).

 

Is there another (new) step the tutorial linked above doesn't cover?

Can someone provide me a brief description/screenshot of how an installed Forge file tree is supposed to look like?

I'm suspecting the supposed-to-exist files aren't in the forge project (yet), probably due to me misshandling gradle in some way (I've got a talent for that, despite the simple step-by-step instructions).

 

edit:

Found the solution in (drumroll please) the local forum's modding guide.

Appears the cpw.mods package is deprecated since 1.8 and the guide I was using above is outdated in that regard. Importing net.minecraftforge.[...] instead works fine.

 

Thread can be locked/deleted.

 

Edited by Alblaka

Greetz,

Alblaka

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.