Posted February 23, 20232 yr I need obfuscated names to use access transformers/reflection, but haven't found an up to date list anywhere.
February 23, 20232 yr You can either use the Forge bot on the Forge discord or Linkie which has the commands for you.
February 23, 20232 yr Author Do I need to switch between using unobfuscated names and SRG names when running the mod in dev and build environments? I plan on using this for reflection since I need access to private/protected fields and methods.
February 24, 20232 yr 18 hours ago, CrackedScreen said: Do I need to switch between using unobfuscated names and SRG names when running the mod in dev and build environments? I plan on using this for reflection since I need access to private/protected fields and methods. No, you can use ObfuscationReflectionHelper and then pass in the SRG name. It will map the field to your mapping set before attempting reflection.
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.