Jump to content

[1.8] Where is code responsible for sending ItemStacks to clients?


Ernio

Recommended Posts

Question in title.

 

I want to save something quite big inside NBT of ItemStack. Since feature will be used extensively and data saved will be TOTALLY useless on client I thought I could cut NBT of ItemStacks which are instanceof my Item before sending them to clients.

 

Where that happens?

Loud thinking: This will probably break everything as CreativeInventory allows client to override server ItemStacks, ay?

 

EDIT

Goal is to save huge-ass amount of bandwidth.

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Well, looking at it now, I am sad (adding to TODO list in future optimization updates).

 

Since I'll be left with what vanilla gives me - when I should be concerned about ItemStack's NBT size?

If I'd be about to put X number of Longs into NBT, how much (X) could become a problem?

Consider that my Items might even fill full inventory, chests and basically are everywhere. (are common)

 

Note: Yeah I know it might be dumb question :x

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

"Stupidly large" but not "

ly large."

I recall someone having an issue with too much NBT data on an item before, but it was an amount measuring in MB.

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

Then I'm safe. I am not even Light Speed yet. #LolYourReferences

 

Man, Spaceballs came out in 1987.  I didn't see it until I was in college (post 2005).

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

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.