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

So, basically I would like to decompile Minecraft in order to have my own private repo for reference etc.

I've done so via Fernflower and it works great except there are quite a few decompile errors and/or issues inserted by the obfuscator.

 

What I'm wondering is: does anyone know how Forge deals with these little issues when decompiling?

Common examples of what I'm talking about:

void method() {
   String result;
   String result = getStringFromSomewhere(); // Compile error already defined in scope
   result = result;
   return result;
}

void otherMethod() {
   String name;
   String value;
   String name = properties.get("name"); // Already defined
   name = properties.get("value"); // Blantantly wrong vars
   value = properties.get("signature");

   // Should actually be something like
   String name = properties.get("name");
   String value = properties.get("value");
   String signature = properties.get("signature");
}

 

Since, as far as I'm aware, Forge fully decompiles and recompiles Minecraft it must deal with these issues in some way. Is this information readily available somewhere that I haven't been able to find it maybe?

Thanks for any insight :)

 

P.S. If I've posted this in the wrong section please let me know. I didn't see any other more appropriate forum sections though.

Edited by Andavin

Minecraft is copywritten code and publishing their decompiled source is illegal. We do not support you doing it.

The toolchain Forge has is specifically designed to keep things like that at arms length but also give you a local copy to reference it.

 

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

  • Author
Just now, LexManos said:

Minecraft is copywritten code and publishing their decompiled source is illegal. We do not support you doing it.

The toolchain Forge has is specifically designed to keep things like that at arms length but also give you a local copy to reference it.

 

Hi,

 

Thanks for your response. I do not intend to publish or distribute decompiled Minecraft code in any way.

I am asking a specific question about how Forge deals with a common issue that comes from decompiling code.

 

I'd appreciate any insight you have for my question :)

We fix it manually. And we try and make Fernflower better to produce better decompiled code.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

  • Author
Just now, LexManos said:

We fix it manually. And we try and make Fernflower better to produce better decompiled code.

Interesting, thank you for letting me know. That at least helps my search for a solution.

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.