Enigma
Enigma copied to clipboard
Allow renaming variables defined in methods
Related to https://bitbucket.org/cuchaz/enigma/issues/23/allow-renaming-method-locals
I'd be happy to have this even if it didn't persist between Minecraft versions. It would make mapping the other stuff easier.
@mezz - It's not for mapping anywhere near as much as it is for developers. Our lovely, lovely developers.
From reading the other issue, it may be impossible to keep the variable names across versions, but I think it would still be a useful first step to allow editing them in a temporary way.
More generally, we could allow modifying the source code of the method (to not only rename variables but to do things such as turning iterators + while loops to for-each loops when applicable), with checks to make sure that the generated bytecode is the same as the original. Of course, this would take a lot of effort to make working, and we still can't keep this info across versions if a method's implementation changes.