Rename Nbt
to BinaryNbt
, and NbtFormat
to Nbt
, and add Nbt
companion object for NbtTag
serialization
#39
Milestone
It would be nice to have default functionality common to binary/stringified NBT accessible with
Nbt.[...]
, but the currentNbtFormat
/Nbt
/StringifiedNbt
naming doesn't work nicely with that.Brief rationale:
Nbt.[...]
for the API feels nicer from a naming perspective for basic un-configured serializationNbt
classNbtFormat
, and it feels awkward/unexpected to be a different configuration typeNbtFormat
interface as a companion objectNbtFormat.encodeToNbtTag(serializer, value)
Nbt
class represent the general structure for the format, dealing with the in-memory representation and theNbtTag
classes.Nbt
named according to what functionality they bring (BinaryNbt
andStringifiedNbt
).Nbt-
, while binary/stringified API areBinaryNbt-
andStringifiedNbt-
, making the API easier to find through intellisense, and grouping code files more nicely when alphatized.The text was updated successfully, but these errors were encountered: