diff --git a/eco-api/src/main/kotlin/com/willfp/eco/core/items/Items.kt b/eco-api/src/main/kotlin/com/willfp/eco/core/items/Items.kt index 0bb6d53c..76cd2152 100644 --- a/eco-api/src/main/kotlin/com/willfp/eco/core/items/Items.kt +++ b/eco-api/src/main/kotlin/com/willfp/eco/core/items/Items.kt @@ -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)