knbt
knbt copied to clipboard
Add extension methods/properties to Kotlin types for creating Nbt versions of a type.
Some utility methods/properties could be added on kotlin classes to simplify creation of Nbt types. I actually have some methods listed in the examples on some projects and I use them often.
Exemples :
-
"test".nbtto transform aStringto aNbtString. -
true.asNbtByte()to transform aBooleanto aNbtByte. -
listOf(1, 2, 3).asNbtList()to transform aListofNumberto theNbtListversion, maybe to theNbt[Number]Arrayversion when possible.