Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.11] How do I make Gradle, Eclipse and the JDK know about CoreMod changes?


DaPorkchop_
 Share

Recommended Posts

Title says it all. I've used ASM to change a few fields from private to public. As expected, it still shows up as an error in Eclipse because "field is not visible", and Gradle can't "gradle build" for the same reason. How am I supposed to overcome this? I know that there's got to be a way (or else there wouldn't be any CoreMods at all) but finding a good tutorial was hard enough, I can't find any information on my issue at all. Anybody here know anything?

"Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why."

                           -- Unknown

Link to comment
Share on other sites

Well, there is a way.  But:

a) what you've done is the wrong way to make a coremod

b) coremods aren't supported here, so its not like I'll tell you what you should be doing

 

Because basically, you've resorted to ASM before Reflection.  ASM is always the last solution.  In order:

Overrides

Events

Substitution

Reflection

Ask on the forums to see if you've missed one or more of the above

Forge Pull Request

Cry in a corner

Abandon all hope and abandon feature

ASM

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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

 Share



×
×
  • Create New...

Important Information

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