Added ItemStack#toSNBT extension function

This commit is contained in:
Auxilor
2022-09-30 15:15:34 +01:00
parent 86e113214d
commit 9f57a322e8

View File

@@ -31,3 +31,7 @@ var ItemStack.baseNBT: PersistentDataContainer
/** @see Items.setBaseNBT */
fun ItemStack.clearNBT() =
Items.setBaseNBT(this, null)
/** @see Items.toSNBT */
fun ItemStack.toSNBT() =
Items.toSNBT(this)