NBT-Manipulator

A kotlin/java lib that allows you to read and write NBT data in a clean way

View on GitHub

//nbt-manipulator/br.com.gamemods.nbtmanipulator/NbtIO/readNbtFile

readNbtFile

[jvm]\

@JvmStatic

@JvmOverloads

fun readNbtFile(inputStream: InputStream, compressed: Boolean = true, littleEndian: Boolean = false, readHeaders: Boolean = false): NbtFile

Read a NbtFile from the InputStream.

Parameters

jvm

   
inputStream The input stream that will be read
compressed If the file needs to be decompressed by GZIPInputStream
littleEndian Reads the NBT file using little endian byte order
readHeaders Reads the NBT version and length headers before the content These data are read in little endian byte order regardless of the littleEndian parameter.

[jvm]\

@JvmStatic

@JvmOverloads

fun readNbtFile(file: File, compressed: Boolean = true, littleEndian: Boolean = false, readHeaders: Boolean = false): NbtFile

Read a NbtFile from a File.

Parameters

jvm

   
file The input file that will be read
compressed If the file needs to be decompressed by GZIPInputStream
littleEndian  
readHeaders