java.lang.Object
net.kyori.adventure.nbt.BinaryTagIO
Serialization operations for binary tags.
- Since:
- 4.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCompression types.static interfaceCompoundBinaryTagreader.static interfaceCompoundBinaryTagwriter. -
Method Summary
Modifier and TypeMethodDescriptionstatic BinaryTagIO.Readerreader()ReturnsBinaryTagIO.Reader, used to read binary tags.static BinaryTagIO.Readerreader(long sizeLimitBytes) ReturnsBinaryTagIO.Reader, used to read binary tags.static BinaryTagIO.ReaderReturnsBinaryTagIO.Reader, used to read binary tags.static BinaryTagIO.Writerwriter()ReturnsBinaryTagIO.Writer, used to write binary tags.
-
Method Details
-
unlimitedReader
ReturnsBinaryTagIO.Reader, used to read binary tags.There is a maximum depth of
512nested tags allowed, but no limit for the amount of contained data.- Returns:
- binary tag reader
- Since:
- 4.4.0
-
reader
ReturnsBinaryTagIO.Reader, used to read binary tags.This reader has a size limit for the estimated number of data bytes for a tag.
- Returns:
- binary tag reader
- Since:
- 4.4.0
-
reader
ReturnsBinaryTagIO.Reader, used to read binary tags.This reader will limit the number of bytes read to the approximate size limit indicated.
- Parameters:
sizeLimitBytes- the maximum (approximate) size of uncompressed data, must be greater than0- Returns:
- binary tag reader
- Since:
- 4.4.0
-
writer
ReturnsBinaryTagIO.Writer, used to write binary tags.- Returns:
- binary tag writer
- Since:
- 4.4.0
-