Jump to content

IExtendedEntityProperties not reading/writing to NBT?


Mew

Recommended Posts

I have a PlayerInformation class that extends IExtendedEntityProperties, but whenever I log off a world, and then open it again, the data that should have been stored hasn't been. Now I am not sure if it is the reading, the writing, or both, or if I am doing it wrong.. So could I please have some help?

 

Link to code: https://github.com/ModderPenguin/MinePG/blob/master/source/minepg/rpg_common/rpg/playerinfo/PlayerInformation.java

 

-Mew

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Link to comment
Share on other sites

Oh shoot. How would I do this? I knew I had missed some sort of syncing issues...

 

And what do you mean, "Debug messages"? a system.out line?

 

-Mew

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Link to comment
Share on other sites

Do some testing: add debug messages in the read/write methods to check if they are called.

Also note that the data won't be accessible on the client-side unless you sync it via packets.

 

I ran some debug messages through and they are saving and reading the data, its just not the correct data.

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

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.