Jump to content

[1.7.10] [1.8] [SOLVED] Using NBTTagEnd to encode null objects.


Recommended Posts

Posted

So, i can't use NBTTagEnd. I don't think i either can add new tag with null value.

So if i use compound and put inside string with name "NULL" containing value "NULL" it will be probably differenciated from encoded object that has string field with name "NULL"?

 

And that link to github you gave me, has some usefull things to learn for me. Because i'm working on something similar and it's working pretty nicely: MBT (Json, Gson. Nbt, Mbt. Get it?).

Posted

So if i use compound and put inside string with name "NULL" containing value "NULL" it will be probably differenciated from encoded object that has string field with name "NULL"?

Which is why I choose the absolutely ridiculous key "_sc$null" (sc for SevenCommons).

Oh yeah, to not be mistaken with object's field, all i have to do is to use characters that cannot be used in field's name. So #NULL will be enough :D ...

 

(Json, Gson. Nbt, Mbt. Get it?).

No, not really :D

The why Gson is named Gson. Because Google's json?

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.