Jump to content

Question about Obfuscation


TheMasterGabriel

Recommended Posts

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.

Link to comment
Share on other sites

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 by Draco18s

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.

Link to comment
Share on other sites

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 by TheMasterGabriel
Link to comment
Share on other sites

Inherited methods must match signature, so yes.

(I originally misparsed your question, but I was able to supply more detailed information.)

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.

Link to comment
Share on other sites

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.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.