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

writeNbtFileDirectly

[jvm]\

@JvmStatic

fun writeNbtFileDirectly(output: DataOutput, file: NbtFile)

Writes the NbtFile to the output. This method does not write the Bedrock Edition version and length headers.

Parameters

jvm

   
output Where the file will be written, needs to handle compression and endianness.
file The file that will be written to the output