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

writeNbtTagDirectly

[jvm]\

@JvmStatic

fun writeNbtTagDirectly(output: DataOutput, tag: NbtTag, writeTypeId: Boolean = true)

Writes the NbtTag directly, without name and optionally without type id.

Parameters

jvm

   
output Where the file will be written, needs to handle compression and endianness.
tag The tag that will be written to the output
writeTypeId If the first byte written should be the NBT tag type id.