aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/bazaar
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-06 02:26:03 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-06 02:26:03 +0100
commit1e24f52201a7ced89c1298c466824dcc0eb13096 (patch)
tree9a17905ae9b45216254809a288dd52df2c55d42a /src/main/java/at/hannibal2/skyhanni/features/bazaar
parentac3a1ccc0e77da14870a9be8fa041ae083284ac1 (diff)
downloadskyhanni-1e24f52201a7ced89c1298c466824dcc0eb13096.tar.gz
skyhanni-1e24f52201a7ced89c1298c466824dcc0eb13096.tar.bz2
skyhanni-1e24f52201a7ced89c1298c466824dcc0eb13096.zip
Added collection data to the bingo step helper.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/bazaar')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt
index f8139e3b9..28ac37849 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarApi.kt
@@ -34,6 +34,9 @@ class BazaarApi {
return null
}
+ fun getBazaarDataForInternalName(internalName: String) =
+ bazaarMap.values.firstOrNull { it.apiName == internalName }
+
fun isBazaarItem(stack: ItemStack): Boolean {
val internalName = stack.getInternalName()
return bazaarMap.any { it.value.apiName == internalName }