Jump to content

Recommended Posts

Posted

hello i am trying with a fuction to destroy a block

but the world.destroyBlock isnt there anymore

 

public void breakBlock(World par1World, int par2, int par3, int par4, Block par5, int par6)

    {

    if (par1World.getBlock(par2, par3 + 1, par4) == Blocks.dirt)

    {

    par1World.destroyBlock(par2, par3 + 1, par4, true);

    }

        super.breakBlock(par1World, par2, par3, par4, par5, par6);

    }

 

i tried par1World.removeTileEntity but that doesnt work as well

Posted

It is there, it's just not deobfuscated yet: World#func_147480_a(int x, int y, int z, boolean drops) is destroyBlock.

 

Tangentially related:

How many of these reasonably common functions are still obfuscated at this point?

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.

Posted

Tangentially related:

How many of these reasonably common functions are still obfuscated at this point?

Honestly, the majority of methods and fields that are commonly used are already deobfuscated, with the occasional random exception such as destroyBlock. But with a little looking, it's usually not too difficult to find what you need.

Posted

Honestly, the majority of methods and fields that are commonly used are already deobfuscated, with the occasional random exception such as destroyBlock. But with a little looking, it's usually not too difficult to find what you need.

 

Sounds like I can start tinkering then.  The changes from 1.6 to 1.7 pretty much mean I have to learn everything all over again, and I wasn't willing to do that and hunt down every bloody undeobfuscated command at the same time.

 

I've fallen out of doing mods lately (other than maintaining my one popular one) but I'll make sure to remember that 1.7 is pretty much usable at this point.

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.

Posted

Sounds like I can start tinkering then.  The changes from 1.6 to 1.7 pretty much mean I have to learn everything all over again...

It's not nearly that difficult or different. I was under the same impression going in, but it's really quite a simple changeover and most of the stuff is exactly the same, perhaps with a new name (Icon -> IIcon, etc.). Depending on how complicated your mod is, it will probably only take a couple hours to completely convert it and work out most of the bugs, since 1.7.2 tends to act differently in certain situations. For example, in my mod I rely quite heavily on key pressed mechanics for activating my skills, and some of that didn't work doing a straight port to 1.7, but pretty much everything else did. Anyway, give it a go and see for yourself ;)

Posted

It's likely less intense than I'm thinking, but I haven't been under a lot of pressure to do it, and have been working on other projects.

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.

Posted

Draco18s,

 

Rather than wait for complete deobfuscation, I've taken the task upon myself to go through every cpw, minecraft, and minecraftforge class... reading, understanding, and even rewriting the class after refactoring all of the names - to sensible ones.

 

Then when I want to invoke a method, I look at my version of the code, pick the name I want, and then use the comment on my code to get the real (obfuscated name). Also, since the arguments in my code are all nice names, it makes it easier to figure out what the argument is expecting.

 

Lots of work, indeed. But, I like java and I'm learning how minecraft works in the deal.

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.

×
×
  • Create New...

Important Information

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