TheMasterGabriel Posted March 28, 2017 Posted March 28, 2017 Hi, I just had a question about obfuscation. When the classes are obfuscated, do inherited methods obfuscate to the same name? For example, would IBlockAccess#getTileEntity have the same obfuscated name as World#getTileEntity? Quote
Failender Posted March 28, 2017 Posted March 28, 2017 I am 99% sure, yes. I dont know, because I didnt looked into it, but if you know java you know that this needs to be true, because if a class overriding / implementing a method it needs to follow the signature of the method it is overriding / implementing, and obfuscating is nothing but a simple rename, the files still need to follow the rules of java. Quote
TheMasterGabriel Posted March 28, 2017 Author Posted March 28, 2017 2 minutes ago, Failender said: a method it needs to follow the signature of the method it is overriding Yes, I figured as much. I was fairly certain too, but I just wanted to check that 1% of doubt I had. Quote
Draco18s Posted March 28, 2017 Posted March 28, 2017 (edited) I am 100% sure no. How do I know? The MCP mappings. SRG Name MCP Name func_175625_s getTileEntity func_176442_d getTileEntity func_177424_a getTileEntity func_177507_b getTileEntity func_180611_e getTileEntity func_190300_a getTileEntity For methods that override, the answer is yes. But just because a method has the same name doesn't mean anything. Edited March 28, 2017 by Draco18s 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.
TheMasterGabriel Posted March 28, 2017 Author Posted March 28, 2017 (edited) 25 minutes ago, Draco18s said: For methods that override, the answer is yes. But just because a method has the same name doesn't mean anything. Yes, I asked if inherited methods have the same obfuscated name. It would probably wreak havoc if the other was the case. I asked about IBlockAccess and World because World overrides getTileEntity from IBlockAccess. Edited March 28, 2017 by TheMasterGabriel Quote
Draco18s Posted March 28, 2017 Posted March 28, 2017 Inherited methods must match signature, so yes. (I originally misparsed your question, but I was able to supply more detailed information.) 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.
LexManos Posted March 28, 2017 Posted March 28, 2017 Yes, there is no real way to deal with this multi-inheritance things. For weird edge cases like this you'll have to figure something out yourself. There has been talk of ways to fix it but nothing has really be implemented yet. Quote I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
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.