Jump to content

Recommended Posts

Posted

Since OreDictionary is not part of minecraft, there's no mapping for its fields, and I had to hack it a little bit (I don't change its state, I just hack it to obtain a particular set of information a bit faster). To do that, I had to use reflection to get a MethodHandle getter for field OreDictionary.stackToId. Does it changes to something else when running outside eclipse?

Posted

Only vanilla fields and methods (and overrides of vanilla methods) get obfuscated to SRG names, anything added by Forge remains unchanged.

 

I wouldn't recommend using reflection on Forge classes, though; you should be using the public API to get what you need. If there's a compelling reason that you need access to something that isn't public, consider opening an issue/PR on GitHub asking for public access.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.