diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-06 02:26:03 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-06 02:26:03 +0100 |
commit | 1e24f52201a7ced89c1298c466824dcc0eb13096 (patch) | |
tree | 9a17905ae9b45216254809a288dd52df2c55d42a /src/main/java/at/hannibal2/skyhanni/features/bazaar | |
parent | ac3a1ccc0e77da14870a9be8fa041ae083284ac1 (diff) | |
download | skyhanni-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.kt | 3 |
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 } |