Jump to content

Recommended Posts

Posted

So I'm having a capability attached onto my Item to store NBT datas. However, each time I get the capability from the ItemStack, it seems to think that the stack has no tag compound at all. So it keeps resetting the data.

 

https://gist.github.com/Spyeedy/23e51fcf00f4ec2aec4a263943af1d08

width=620 height=260http://www.startrek.com/uploads/assets/articles/61c89a9d73c284bda486afaeaf01cdb27180359b.jpg[/img]

Till next time. Thank you for delivering funny scenes to Star Trek as Chekov :) . Will always remember you

Posted

1. Capabilities do not store NBT data. NBT is a serialization format (like txt or json or xml).

2. Your read and write NBT methods do fuck all, what did you expect to happen?

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 (edited)

What's the point in doing capabilities the way you are doing it here? If you want to manipulate the NBT then there is no need for a capability and vice-versa.

Edited by V0idWa1k3r
Posted
7 minutes ago, Draco18s said:

1. Capabilities do not store NBT data. NBT is a serialization format (like txt or json or xml).

2. Your read and write NBT methods do fuck all, what did you expect to happen?

I see, well, someone recommended to me to use capabilities. 

width=620 height=260http://www.startrek.com/uploads/assets/articles/61c89a9d73c284bda486afaeaf01cdb27180359b.jpg[/img]

Till next time. Thank you for delivering funny scenes to Star Trek as Chekov :) . Will always remember you

Posted
5 hours ago, Spyeedy said:

I see, well, someone recommended to me to use capabilities. 

Yes. You should.

 

Here's the thing:

 

Would you rather deal with integers and floats?

 

Or the zip-compressed string representation thereof?

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.

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.