Jump to content

1.7.10 - WorldSavedData


Blackout

Recommended Posts

Hi,

 

I have an Object A which contains a List of object B which each have a List of Object C.

So this is :

-A

--B1

----C1

----C2

----C3

--B2

----C4

----C5

etc..

 

I want to save it into my save.

So as Diesieben07 tell me, I search about how works WorldSavedData and MapStorage.

 

I have understand if you have only 1 field.

For example an Id, when it's changed, you call markDirty() and it will be save.

 

But in my case, if I make a WorldSavedData  for object A, when I want to save the modification of C2, if I mark A as dirty, all my sub-object will be saved right ?

 

How can I do to keep the same structure on my file with A is a NBTTagCompound, B a List, and C a List in B ? And in order that only C2 will be saved when I change it and not all the tree ?

 

I hope it's understandable :S

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.