These methods have a parameter for the maximum nesting depth they are allowed to traverse. class) Īll methods serializing instances or deserializing data track the nesting levels to prevent circular references or malicious data which could, when deserialized, result in thousands of instances causing a denial of service. The NBT specification does not allow circular references, as there is no tag to represent this.Īdd the library as a dependency using Gradle: This usually happens when a circular reference exists in the NBT structure. If the depth exceeds this restriction during serialization, deserialization or String conversion, a MaxDepthReachedException is thrown. The maximum depth of the NBT structure is 512. The EndTag is only used to mark the end of a CompoundTag in its serialized state or an empty ListTag. IntTag payload size, then size LongTag payloads IntTag payload size, then size IntTag payloads ShortTag payload length, then a UTF-8 string with size lengthīyteTag payload tagId, then IntTag payload size, then size tags' payloads, all of type tagId IntTag payload size, then size ByteTag payloads A java implementation of the NBT protocol for Minecraft Java Edition.Īccording to the specification, there are currently 13 different types of tags: Tag classĤ bytes / 32 bits, signed, big endian, IEEE 754-2008, binar圓2Ĩ bytes / 64 bits, signed, big endian, IEEE 754-2008, binary64
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |