From 2ed9de7e4c0c2620ea0acbbbb20ffc964c14257f Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Sun, 25 Feb 2024 16:03:43 +0100 Subject: [PATCH] test --- .../at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt index 1adf858c7423..e3203d802e6c 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt @@ -1,11 +1,13 @@ package at.hannibal2.skyhanni.test import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.api.HotmAPI import at.hannibal2.skyhanni.config.ConfigFileType import at.hannibal2.skyhanni.config.ConfigGuiManager 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.HotmData import at.hannibal2.skyhanni.data.HypixelData import at.hannibal2.skyhanni.data.SlayerAPI import at.hannibal2.skyhanni.events.GuiRenderEvent @@ -41,6 +43,7 @@ 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 com.google.gson.Gson import kotlinx.coroutines.launch import net.minecraft.client.Minecraft import net.minecraft.client.gui.inventory.GuiContainer @@ -106,6 +109,12 @@ class SkyHanniDebugsAndTests { fun testCommand(args: Array) { SoundUtils.playBeepSound() + val gson = Gson() + LorenzDebug.log("Ability: " + HotmAPI.activeMiningAbility?.name) + LorenzDebug.log("Token: " + HotmData.availableTokens + " / " + HotmData.tokens) + LorenzDebug.log("Mithril: " + HotmAPI.Powder.currentMithril + " / " + HotmAPI.Powder.maxMithril) + LorenzDebug.log("Gemstone: " + HotmAPI.Powder.currentGemstone + " / " + HotmAPI.Powder.maxGemstone) + LorenzDebug.log("Tree: " + gson.toJson(HotmAPI.copyCurrentTree())) // val a = Thread { OSUtils.copyToClipboard("123") } // val b = Thread { OSUtils.copyToClipboard("456") }