Jump to content

Recommended Posts

Posted

Here I am again, with my poor English and poorer mod coding skills, to bother you guys once more.

 

So, I've completed some successful tests, creating a few blocks that do crazy stuff like making it rain and turning night into day and vice versa. Preparing the way so one day I can master GUI, TileEntities, NBT and Containers and all that circus.

 

I've been reading the code for BlockContainer, and BlockChest for hours now (didn't touch the TileEntity code itself, but I'm being able to figure out it's role everytime it appears in the code - thanks to Senitiel and specially Mazetar for his brief crystal clear explanation on a lot of complex concepts).

 

Suddenly, a wild EntityItem appears. I read it's code. There's not much of it. But I can't understand what it is. Maybe it's something simple that I can't understand due to exaustion? It's like some kind of "box" around an ItemStack, I think? but I can't understand why it exists.

 

What's even more amazing is that I understood the rest of the code so far! With all those par1, par2, par3, parFuckYouCode... Who's to blame for those cursed meaningless names? Forge? MCP? Notch?

 

So, to make it clear, what is an EntityItem? Why do we need that class?

 

Thanks!

 

edit: yeah... at the end of the method I'm reading (BlockChest.breakBlock()) there's yet another surprise: at the very last line of the method there's a call to World.func_96440_m(). What the hell?  :'(

WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons

Posted

When you drop an item, it spawns an entityItem of that itemstack. Also, a tip, complaining about obsfucation might get lex to smite you, just saying :P

"you seem to be THE best modder I've seen imo."

~spynathan

 

ლ(́◉◞౪◟◉‵ლ

Posted

Oh, so that's the names of things prior to deobfuscation! It makes perfect sense now (I was not sure of the meaning of obfuscation/deobfuscation before now. God, I'm stupid).

 

Ok, so EntityItem is a dropped ItemStack. Still weird, but ok. I can live with that. Thanks!!

WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons

Posted

Oh, so that's the names of things prior to deobfuscation! It makes perfect sense now (I was not sure of the meaning of obfuscation/deobfuscation before now. God, I'm stupid).

 

Ok, so EntityItem is a dropped ItemStack. Still weird, but ok. I can live with that. Thanks!!

 

[*]That's not quite correct :P The names prior to the deobfuscation (the "real" obfuscation encountered in the original minecraft.jar) has names like "a" or "z" or "xy". If you run the deobfuscation, the names will first be translated to so-called "SRG"-names (indices given by MCP), which are called "func_xxxx" for methods/functions or "field_xxxx" for fields/variables. After that, these will be translated into "CSV"-names and they'll get "sense-making" names like "registerIcon(...)" or the like. If the CSV mappings don't contain such a name, the name will simply stay like "func_xxx/field_xxx".

[*]It's not that weird ;) The ItemStack is only for seperately instantiating items (you may notice the actual item class is only instanciated once) to save NBTTags (enchantments, for example), save the damage value (tools) / metadata (dyes) and the stack size. The EntityItem is only there for "outside" interactions with the environment (like picking them up or dying in lava/fire).

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

I'm still confused about deobfuscation and all that, but I think that's not critical knowledge for mod codding, so I'm not gonna try to learn any further about that. I totally understand EntityItem now, thank you very much for clarifying that, SanAndreasP!

WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • USA User You can get a 40 Off Temu Coupon code using the code ["aci789589"]. This Temu 40 Off code is specifically for new and existing customers both and can be redeemed to receive a 40% discount on your purchase. Our exclusive Temu Coupon code offers a flat 40 Off your purchase, plus an additional 30% discount on top of that. You can slash prices by up to 70% as a new Temu customer using code ["aci789589"]. Existing users can enjoy 40% off their next haul with this code. But that’s not all! With our Temu Coupon codes for 2025, you can get up to 90% discount on select items and clearance sales. Whether you’re a new customer or an existing shopper, our Temu codes provide extra discounts tailored just for you. Save up to 30% with these current Temu Coupons ["^"aci789589"^"] for June 2025. The latest Temu coupon codes at here. Free Temu codes 40 Off — ["aci789589"] Temu Coupon 40 Off — ["aci789589"] Temu Coupon 30% off — ["aci789589"] Temu Memorial Day Sale 75% off — ["aci789589"] Temu Coupon code today — ["aci789589"] Temu free gift code — ["^"aci789589"^"](Without inviting friends or family member) Temu Coupon code for Canada - 30% Off— ["aci789589"] Temu Coupon code Australia - 30% Off— ["aci789589"] Temu Coupon code New Zealand - 30% Off — ["aci789589"] Temu Coupon code Japan - 30% Off — ["aci789589"] Temu Coupon code Mexico - 30% Off — ["aci789589"] Temu Coupon code Chile - 30% Off — ["aci789589"] Temu Coupon code Peru - 30% Off — ["aci789589"] Temu Coupon code Colombia - 30% Off — ["aci789589"] Temu Coupon code Malaysia - 30% Off — ["aci789589"] Temu Coupon code Philippines - 30% Off — ["aci789589"] Temu Coupon code South Korea - 30% Off — ["aci789589"] Redeem Free Temu Coupon Code ["^"aci789589"^"] for first-time users Get a $100 discount on your Temu order with the promo code "aci789589". You can get a discount by clicking on the item to purchase and entering this Temu Coupon code 40 Off ["aci789589"]. Temu New User Coupon ["aci789589"]: Up To 75% OFF For First-Time Users Our Temu first-time user coupon codes are designed just for new customers, offering the biggest discounts and the best deals currently available on Temu. To maximize your savings, download the Temu app and apply our Temu new user coupon during checkout. Temu Coupon Codes For Existing Users ["aci789589"]: 40% Price Slash Have you been shopping on Temu for a while? Our Temu Coupon for existing customers is here to reward you for your continued support, offering incredible discounts on your favorite products. Temu Coupon For 40 Off ["aci789589"]: Get A Flat $100 Discount On Order Value Get ready to save big with our incredible Temu Coupon for 40 Off! Our amazing Temu 40 Off coupon code will give you a flat $100 discount on your order value, making your shopping experience even more rewarding. Temu Coupon Code For 40% Off ["aci789589"]: For Both New And Existing Customers Our incredible Temu Coupon code for 40% off is here to help you save big on your purchases. Whether you’re a new user or an existing customer, our 40% off code for Temu will give you an additional discount! Temu Coupon Bundle ["aci789589"]: Flat 40 Off + Up To 70% Discount Get ready for an unbelievable deal with our Temu Coupon bundle for 2025! Our Temu Coupon bundles will give you a flat $100 discount and an additional 40% off on top of it. Free Temu Coupons ["aci789589"]: Unlock Unlimited Savings! Get ready to unlock a world of savings with our free Temu Coupons! We’ve got you covered with a wide range of Temu Coupon code options that will help you maximize your shopping experience. 30% Off Temu Coupons, Promo Codes + 25% Cash Back ["aci789589"] Redeem Temu Coupon Code ["aci789589"] Temu Coupon 40 Off ["aci789589"] Temu Coupon 40 Off FOR EXISTING CUSTOMERS ["aci789589"] Temu Coupon 40 Off FIRST ORDER ["aci789589"] Temu Coupon 40 Off REDDIT ["aci789589"] Temu Coupon 40 Off FOR EXISTING CUSTOMERS REDDIT ["aci789589"] Temu 40 Off CODE ["aci789589"] Temu 100 OFF COUPON 2025 ["aci789589"] DOMINOS 100 RS OFF COUPON CODE ["aci789589"] WHAT IS A COUPON RATE ["aci789589"] Temu 40 Off FOR EXISTING CUSTOMERS ["aci789589"] Temu 40 Off FIRST ORDER ["aci789589"] Temu 40 Off FREE SHIPPING ["aci789589"]
    • Make a test with another Launcher like MultiMC or AT Launcher
    • Add crash-reports with sites like https://mclo.gs/ Looks like immersiverailroading and Optifine are conflicting - make a test without Optifine
    • And without create_more_automation?
  • Topics

×
×
  • Create New...

Important Information

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