Posted May 16, 201411 yr Hey guys! I've been working on some renderers and I used the block destroy texture for one of them. I accessed this private field via reflection. The problem is: In minecraft itself (not in eclipse) the names are different because of obfuscation. Where can I find a list of all obfuscated Classes/Fields/Methods? Thanks in advance! http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
May 16, 201411 yr Hey guys! I've been working on some renderers and I used the block destroy texture for one of them. I accessed this private field via reflection. The problem is: In minecraft itself (not in eclipse) the names are different because of obfuscation. Where can I find a list of all obfuscated Classes/Fields/Methods? Thanks in advance! I haven't done any reflection yet but was wondering about this topic -- doesn't MCP help map this even in the case of reflection? If not how do you manage the development environment versus the actual minecraft environment? Check out my tutorials here: http://jabelarminecraft.blogspot.com/
May 16, 201411 yr Author You are talking about AccessTransformer, right? You can do this with AccessTransformer I think, but on the Wiki was written that it would be better to use reflection. How I did this is quite simple to explain: First I tried to get the obfuscated object (cause this would be the default case) in a try-catch block. In the catch statent for ClassNotFoundException I created another try-catch block which contains the code to get the deobfuscated object. If you are now in development, the first one fails and the second one is executed. http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
May 16, 201411 yr You are talking about AccessTransformer, right? You can do this with AccessTransformer I think, but on the Wiki was written that it would be better to use reflection. How I did this is quite simple to explain: First I tried to get the obfuscated object (cause this would be the default case) in a try-catch block. In the catch statent for ClassNotFoundException I created another try-catch block which contains the code to get the deobfuscated object. If you are now in development, the first one fails and the second one is executed. Okay, yeah that is what I figured -- you'd have to look for both. Diesenben07's idea is probably cleaner though -- check the environment so you don't even have to try the wrong thing. Diesieben07, thanks for clarifying. I guess it makes sense that MCP won't map strings. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
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.