Jump to content

Recommended Posts

Posted

For the life of me I cannot understand HOW MapSavedData works. I know it's NBT but it's not traditional in any way whatsoever. I am trying to store many String values (or if possible custom Enums) into NBT with different keys. normally, I would call compound.setString("mykey", "data") but MapSavedData does not do this. Instead I am left with MapStorage.getWorldData() and some need-to-be implemented readFromNBT and writeFromNBT. It has something to do with MapStorage.getOrLoadData(); and MapStorage.setData(); which I think writes the class into the world? Do the classes only store ONE value? I want a compound that saves into the map.

 

I feel very stupid, but I've searched all I can and read the documentation and STILL I cannot understand.

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.