Jump to content

No imports resolvable in unmodified MDK (UNSOLVED)


Recommended Posts

Trying again to get into Minecraft modding, I was able to import the Forge MDK into Eclipse after some confusion, but all of the imports in ExampleMod.java are highlighted in red with an error saying they can't be resolved, and all references to any type can't be resolved either. Any type, including String. Only the simplest types like int, along with types defined in the same package work fine. I tried right-clicking on the project, going to Gradle > Refresh Gradle Project and also running gradlew --refresh-dependencies but neither of those seem to have had any noticeable effect. The mod builds just fine in spite of the errors, though I doubt I'll be able to get anything done with Eclipse constantly screaming at me.

Edited by Tiny Desk Engineer
Include more potentially useful details
Link to comment
Share on other sites

5 hours ago, perromercenary00 said:

is usual than the imported classes changes in name and int path from version to version  

are you sure the code you are putting is for the version you are trying to run 

The version of what? I just imported the MDK into Eclipse. I haven't made any edits to the Java code in it or even any other files. I haven't even gotten to changing the modid from "examplemod" yet.

Link to comment
Share on other sites

  • Tiny Desk Engineer changed the title to No imports resolvable in unmodified MDK (UNSOLVED)

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.