From ceef1d3be403db7ee5f8cbda8c49f3370d35df78 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 15 Aug 2023 14:14:19 +0200 Subject: removed hypixel api --- .../java/at/hannibal2/skyhanni/api/CollectionAPI.kt | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/api') 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 @@ -19,24 +18,6 @@ class CollectionAPI { private val counterPattern = "(?:.*) §e(?.*)§6\\/(?:.*)".toPattern() private val singleCounterPattern = "§7Total Collected: §e(?.*)".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() -- cgit