Added ItemStack#toSNBT extension function
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user