aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorHiZe_ <superhize@hotmail.com>2023-06-09 23:22:16 +0200
committerGitHub <noreply@github.com>2023-06-09 23:22:16 +0200
commitfd21e3c6f7c40f92972f594b2724950e036986a9 (patch)
tree248b8210a911e5864ee500a13aa4f771fbf2f282 /src/main/java/at/hannibal2/skyhanni/utils
parent40703a977119cd83f6975d873728e756e46e0cc7 (diff)
downloadskyhanni-fd21e3c6f7c40f92972f594b2724950e036986a9.tar.gz
skyhanni-fd21e3c6f7c40f92972f594b2724950e036986a9.tar.bz2
skyhanni-fd21e3c6f7c40f92972f594b2724950e036986a9.zip
Restore Bought Piece Of Wizard Portal Lore (#225)
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 19177aaa5..cd0d33f96 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/SkyBlockItemModifierUtils.kt
@@ -153,6 +153,8 @@ object SkyBlockItemModifierUtils {
return data.sackInASack
}
+ fun ItemStack.getRecipientName() = getAttributeString("recipient_name")
+
fun ItemStack.getGemstones() = getExtraAttributes()?.let {
val list = mutableListOf<GemstoneSlot>()
for (attributes in it.keySet) {