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/writeNbtFileAsOriginal

writeNbtFileAsOriginal

[jvm]\

@JvmStatic

fun writeNbtFileAsOriginal(outputStream: OutputStream, file: NbtFile)

Calls writeNbtFile using the information stored in the NbtFile, uses the method’s default when the information is missing (null). This method does not write the Bedrock Edition version and length headers.

Parameters

jvm

   
outputStream The stream that the file will be written
file The file that will be written to the stream