aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-17 15:48:32 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-06-17 15:48:59 +0200
commitaf8a6ff6d636c1957bb774bb6791f13cd390cc65 (patch)
tree5aa6409546d11caf46bf0789c297001f8114ad30 /src/main/java/at/hannibal2/skyhanni/utils
parent210acc597ffa1b1213ebd7482d03b13670e4cee5 (diff)
downloadskyhanni-af8a6ff6d636c1957bb774bb6791f13cd390cc65.tar.gz
skyhanni-af8a6ff6d636c1957bb774bb6791f13cd390cc65.tar.bz2
skyhanni-af8a6ff6d636c1957bb774bb6791f13cd390cc65.zip
Added dev option to show item uuid in item lore
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
index 8d937956d..87308e495 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
@@ -139,6 +139,8 @@ object SkyBlockItemModifierUtils {
fun ItemStack.getRecipientName() = getAttributeString("recipient_name")
+ fun ItemStack.getItemUuid() = getAttributeString("uuid")
+
fun ItemStack.getGemstones() = getExtraAttributes()?.let {
val list = mutableListOf<GemstoneSlot>()
for (attributes in it.keySet) {