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

NbtByteArray

[jvm]
fun NbtByteArray()

Creates a new tag with an empty array.

[jvm]
fun NbtByteArray(value: String)

Parses the string using the same structure which is returned by stringValue.

The bytes should be signed, ranging from -127 to 127.

Parameters

jvm

   
value A string with a structure like [0, -32, 48, 127]

Throws

   
kotlin.IllegalArgumentException if the string does not have the exact format outputted by stringValue

[jvm]
fun NbtByteArray(value: ByteArray)