Solved How can I get private/protected variables?
-
I'd like to get some private/protected variables without getter(from Java classes)
-
You need to use reflection. Check out this thread on StackOverflow.
-
sometimes u can use try and catch statements to access private/protected variables
-
You need to use reflection. Check out this thread on StackOverflow.
-
Btw the fields/methods of vanilla minecraft(not for forge and LB) are obfuscated, if you want to access to these you will have to use searge name to access it, you can find it in .minecraft/LiquidBounce-1.8/mcp-stable22srg(I don't remember the name exactly).