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

NbtShort

[jvm]
fun NbtShort(signed: String)

Parses the string value as a signed short and wraps it.

Parameters

jvm

   
signed Signed value from -32768 to 32767.

Throws

   
kotlin.NumberFormatException if the number is not within a valid range or if the string does not contain a valid number.

[jvm]
fun NbtShort(value: Short)