Posted April 25, 20178 yr I have heard everyone that using java reflector is better than access transformer. But I don't know how to use java reflector. Could you guys explain me how to use that? I am very appreciated with your help! Edited April 25, 20178 yr by lethinh
April 25, 20178 yr Google is your friend: (https://www.google.com/search?q=how+to+use+reflection+in+java+to+access+private+method&ie=utf-8&oe=utf-8) http://stackoverflow.com/questions/11483647/how-do-i-access-private-methods-and-private-data-members-via-reflection
April 25, 20178 yr You could use the Forge reflection helper. I use it in my mod right here to access fields. There are methods in ReflectionHelper to grab hold of methods as well. Edited April 25, 20178 yr by OreCruncher
April 25, 20178 yr 8 hours ago, lethinh said: I don't know how to use java reflector Since this forum is for help with Forge and not Java, the best place to look is outside, for sites offering more general Java help. As Ugdhar said, Google is your friend. When you find a good Java help site (or thread or tutorial), bookmark it for future reference. The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.
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.