Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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!

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/

  • 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.

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...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.