aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt1
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
index f98a3a23a..d39587d4d 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
@@ -117,6 +117,7 @@ object ItemUtils {
}
// TODO remove
+ @Deprecated("Use NEUInternalName rather than String", ReplaceWith("getInternalName()"))
fun ItemStack.getInternalName_old() = getInternalName().asString()
fun ItemStack.getInternalName() = getInternalNameOrNull() ?: NEUInternalName.NONE
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
index 641cd692e..3fa8a09ad 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
@@ -47,6 +47,7 @@ object NEUItems {
}
// TODO remove
+ @Deprecated("Use NEUInternalName rather than String", ReplaceWith("getInternalNameFromItemName()"))
fun getRawInternalName(itemName: String): String {
return getInternalNameFromItemName(itemName).asString()
}
@@ -174,6 +175,7 @@ object NEUItems {
fun getItemStackOrNull(internalName: String) = internalName.asInternalName().getItemStackOrNull()
// TODO remove
+ @Deprecated("Use NEUInternalName rather than String", ReplaceWith("getItemStack()"))
fun getItemStack(internalName: String): ItemStack =
internalName.asInternalName().getItemStack()