-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP Make every serializable type have an implicit
NbtName
TODO: Test the default. Document in @NbtName. Types that don't have an explicit `@NbtName` will default to having an empty name. The root name is largely redundant, since Minecraft's implementation entirely discards it and just uses an empty string when writing NBT. Giving all types a default name matches Minecraft's behavior, makes serializing with named NBT formats more straightforward for those who don't care about the NBT name, and makes any (3rd-party) serializable type compatible with named NBT out of the box.
- Loading branch information
1 parent
349191a
commit 5141383
Showing
5 changed files
with
8 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters