Posted August 30, 20205 yr Is there a preferred way to access a private class from Minecraft classes? I can use the regular Java Reflection to access it, but I don't believe that will work after it is obfuscated. For example, how can I access net.minecraft.client.gui.screen.FlatPresetsScreen.LayerItem given that it is not a public class?
August 31, 20205 yr If I remember correctly, you can just use the deobf fully-qualified name for reflection purposes. When the end-user installs a forge client/server, Forge maps the obf names to the srg names. Have you ever want the new operator to return a type that you didn't ask for? Well, now you can!
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.