Explain the concept of MCP 1.7.10 java class navigation.

286    Asked by Amitraj in Java , Asked on Oct 12, 2022

So, I'm new to the Minecraft modding community and trying to understand where to start. I've attempted to do it before, but dropped it due to the complexity of starting and the lack of a site like this to help (Mind that I'm also semi-new to Java, but have worked extensively in Javascript and Python. I understand how Java is different from the two).


I have downloaded MCP 9.08 (Decompiles 1.7.10), and deobfuscated Minecraft. I'm looking for a mod client, so I didn't supply it with a server jar. Everything seemed to work fine in decompile (Only error was it couldn't find the server jar). I can find my files in /mcp908/src/minecraft/net/minecraft. However, if I open up one of the classes in, say, block, I see a bunch of variables starting with p_ and ending with _. Is there any way to make these variables more decipherable, to understand what's going on so I can learn by example?

Answered by Andrew Jenkins

Regarding the MCP 1.7.10, Mojang obfuscate their code whenever they bundle it into a .jar, which is essentially renaming all their variables and methods to gibberish, presumably to prevent others from cracking or modding it The MCP team has done a great job of deobfuscating this code and deducting what each variable roughly means, but there are still some that are too arbitrary to understand what they do. Hence they remain obfuscated, and are just assigned a random number or string etc.

So in short, if you want to get a proper name for these variables you'll need to find out what they do/change and rename them yourself


Your Answer

Interviews

Parent Categories