aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/api
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-15 14:14:19 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-15 14:14:19 +0200
commitceef1d3be403db7ee5f8cbda8c49f3370d35df78 (patch)
treef271d2b943e37331a6f87b352dd3e670af65b7c6 /src/main/java/at/hannibal2/skyhanni/api
parentecb40c801ab44118059c1ef07438dfacd75e3927 (diff)
downloadskyhanni-ceef1d3be403db7ee5f8cbda8c49f3370d35df78.tar.gz
skyhanni-ceef1d3be403db7ee5f8cbda8c49f3370d35df78.tar.bz2
skyhanni-ceef1d3be403db7ee5f8cbda8c49f3370d35df78.zip
removed hypixel api
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/api')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/api/CollectionAPI.kt19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/api/CollectionAPI.kt b/src/main/java/at/hannibal2/skyhanni/api/CollectionAPI.kt
index b02a8483e..ca1be6890 100644
--- a/src/main/java/at/hannibal2/skyhanni/api/CollectionAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/api/CollectionAPI.kt
@@ -2,7 +2,6 @@ package at.hannibal2.skyhanni.api
import at.hannibal2.skyhanni.events.CollectionUpdateEvent
import at.hannibal2.skyhanni.events.InventoryFullyOpenedEvent
-import at.hannibal2.skyhanni.events.ProfileApiDataLoadedEvent
import at.hannibal2.skyhanni.events.ProfileJoinEvent
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
import at.hannibal2.skyhanni.utils.ItemUtils.name
@@ -20,24 +19,6 @@ class CollectionAPI {
private val singleCounterPattern = "§7Total Collected: §e(?<amount>.*)".toPattern()
@SubscribeEvent
- fun onProfileDataLoad(event: ProfileApiDataLoadedEvent) {
- val profileData = event.profileData
- val jsonElement = profileData["collection"] ?: return
- val asJsonObject = jsonElement.asJsonObject ?: return
- for ((hypixelId, rawCounter) in asJsonObject.entrySet()) {
- val counter = rawCounter.asLong
- val internalName = NEUItems.transHypixelNameToInternalName(hypixelId)
-
- // MUSHROOM_COLLECTION,
- internalName.getItemStackOrNull()?.displayName ?: continue
-
- collectionValue[internalName] = counter
- }
-
- CollectionUpdateEvent().postAndCatch()
- }
-
- @SubscribeEvent
fun onProfileJoin(event: ProfileJoinEvent) {
collectionValue.clear()
}