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

NbtCompound

[jvm]
fun NbtCompound(value: Map<String, NbtTag>)

Creates a new compound containing the same mappings as the given Map.

The tags in the map will be linked so any modification will also change this tag contents.

[jvm]
fun NbtCompound()

Creates an empty compound.

[jvm]
fun NbtCompound(vararg tags: Pair<String, NbtTag>)

fun NbtCompound(tags: Iterable<Pair<String, NbtTag>>)

Creates a compound which maps the Pair.first value to the Pair.second tag initially.

The given tags will be linked, so modifications to them will also affect the compound value.

[jvm]
fun NbtCompound(value: String)

Throws

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