diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-18 20:22:08 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-01-18 20:22:08 +0100 |
commit | 4b44988d83f1522c8279d9571e7b438d8f17cac0 (patch) | |
tree | b87b3842cfec286acc139f15799fa3e2b6e7e0c4 /src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt | |
parent | e1ee9ac488dbba5e6898e92bc9ebf93096e671b1 (diff) | |
download | skyhanni-4b44988d83f1522c8279d9571e7b438d8f17cac0.tar.gz skyhanni-4b44988d83f1522c8279d9571e7b438d8f17cac0.tar.bz2 skyhanni-4b44988d83f1522c8279d9571e7b438d8f17cac0.zip |
moving debug command into own class
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt | 113 |
1 files changed, 0 insertions, 113 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt index 091ddf499..ec850f5dd 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt @@ -7,8 +7,6 @@ import at.hannibal2.skyhanni.config.ConfigManager import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator import at.hannibal2.skyhanni.config.core.config.Position import at.hannibal2.skyhanni.data.HypixelData -import at.hannibal2.skyhanni.data.IslandType -import at.hannibal2.skyhanni.events.DebugDataCollectEvent import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.LorenzChatEvent import at.hannibal2.skyhanni.events.LorenzRenderWorldEvent @@ -41,7 +39,6 @@ import at.hannibal2.skyhanni.utils.RenderUtils.renderString import at.hannibal2.skyhanni.utils.RenderUtils.renderStringsAndItems import at.hannibal2.skyhanni.utils.SimpleTimeMark import at.hannibal2.skyhanni.utils.SoundUtils -import at.hannibal2.skyhanni.utils.StringUtils.equalsIgnoreColor import kotlinx.coroutines.launch import net.minecraft.client.Minecraft import net.minecraft.client.gui.inventory.GuiContainer @@ -344,116 +341,6 @@ class SkyHanniDebugsAndTests { OSUtils.copyToClipboard(name) } - fun debugData(args: Array<String>) { - if (args.size == 2 && args[0] == "profileName") { - HypixelData.profileName = args[1].lowercase() - LorenzUtils.chat("§eManually set profileName to '${HypixelData.profileName}'") - return - } - val list = mutableListOf<String>() - list.add("```") - list.add("= Debug Information for SkyHanni ${SkyHanniMod.version} =") - list.add("") - - val search = args.getOrNull(0) - list.add( - if (search != null) { - if (search.equalsIgnoreColor("all")) { - "search for everything." - } else "search: '$search'" - } else "search not specified, showing only interesting stuff" - ) - - val event = DebugDataCollectEvent(list, search) - - event.title("Player") - event.ignore { - add("name: '${LorenzUtils.getPlayerName()}'") - add("uuid: '${LorenzUtils.getPlayerUuid()}'") - } - - event.title("Repo Auto Update") - if (config.repoAutoUpdate) { - event.ignore("normally enabled") - } else { - event.addData("The repo does not auto update because auto update is disabled!") - } - - event.title("Global Render") - if (globalRender) { - event.ignore("normally enabled") - } else { - event.addData { - add("Global renderer is disabled!") - add("No renderable elements from SkyHanni will show up anywhere!") - } - } - - event.title("SkyBlock Status") - if (!LorenzUtils.onHypixel) { - event.addData("not on Hypixel") - } else { - if (!LorenzUtils.inSkyBlock) { - event.addData("not on SkyBlock, but on Hypixel") - } else { - if (LorenzUtils.skyBlockIsland == IslandType.UNKNOWN) { - event.addData("Unknown SkyBlock island!") - } else { - event.ignore { - add("on Hypixel SkyBlock") - add("skyBlockIsland: ${LorenzUtils.skyBlockIsland}") - add("skyBlockArea: '${LorenzUtils.skyBlockArea}'") - } - } - } - } - - event.title("Profile Name") - if (!LorenzUtils.inSkyBlock) { - event.ignore("Not on SkyBlcok") - } else { - if (HypixelData.profileName != "") { - event.ignore("profileName: '${HypixelData.profileName}'") - } else { - event.addData("profile name is empty!") - } - } - - - event.title("Profile Type") - if (!LorenzUtils.inSkyBlock) { - event.ignore("Not on SkyBlcok") - } else { - val classic = !LorenzUtils.noTradeMode - if (classic) { - event.ignore("on classic") - } else { - if (HypixelData.ironman) { - event.addData("on ironman") - } - if (HypixelData.stranded) { - event.addData("on stranded") - } - if (HypixelData.bingo) { - event.addData("on bingo") - } - } - } - - event.postAndCatch() - - if (event.empty) { - list.add("") - list.add("Nothing interesting to show right now!") - list.add("Looking for something specific? /shdebug <search>") - list.add("Wanna see everything? /shdebug all") - } - - list.add("```") - OSUtils.copyToClipboard(list.joinToString("\n")) - LorenzUtils.chat("§eCopied SkyHanni debug data in the clipboard.") - } - fun copyItemInternalName() { val hand = InventoryUtils.getItemInHand() if (hand == null) { |