Norazan Posted April 25, 2015 Posted April 25, 2015 This might have been asked quite a few times already, but I am sort of new to Forge modding. Why do a lot of standard minecraft/forge methods and parameters have confusing names like p_78088_2_ ? I also can't seem to find any declaration on the methods. Is there any? Thanks in advance. Quote
jcranky Posted April 25, 2015 Posted April 25, 2015 Not Forge's, but Minecraft's methods and fields are confusing because they are extracted from compiled code - which means that the original method and field names are usually lost. As I understand it, the tools involved in the process do a best effort to extract those names, but that is a quite complex matter. Quote just you wait!
Draco18s Posted April 25, 2015 Posted April 25, 2015 Those are the SRG names and they look like that because there hasn't been a friendly name applied to them yet, via MCPBot. Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Norazan Posted April 25, 2015 Author Posted April 25, 2015 Alright got it, thanks. Is there any way to figure out what the methods/fields stand for? Quote
Draco18s Posted April 25, 2015 Posted April 25, 2015 Looking at the code and seeing what it does. Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
jcranky Posted April 27, 2015 Posted April 27, 2015 On 4/25/2015 at 10:49 PM, diesieben07 said: This is not quite true. If you just decompile code compiled with javac (the normal java compiler) you get back pretty much the original code. The names match and everything. Why not with Minecraft? Because Mojang uses an obfuscator in addition to the normal compiler. This program strips all unnecessary information and renames classes, fields and methods to meaningless things. True, thank you for the correction. I somehow forgot to mention the obfuscator =) Quote just you wait!
Recommended Posts
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.