Jump to content

Recommended Posts

Posted

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/

Posted

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.

Posted

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.

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.