diff options
| author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-05-07 22:43:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-07 22:43:17 +0200 |
| commit | d0345f39230e4f07f061b6c82a381c863e9787d8 (patch) | |
| tree | beaf9d162d1ee0b891fefefeb1fb4815d9adb89b /src/main/java/at/hannibal2/skyhanni/test | |
| parent | 912c8d8a8c9ad412b2f94827e09a9cf262e5b69a (diff) | |
| download | skyhanni-d0345f39230e4f07f061b6c82a381c863e9787d8.tar.gz skyhanni-d0345f39230e4f07f061b6c82a381c863e9787d8.tar.bz2 skyhanni-d0345f39230e4f07f061b6c82a381c863e9787d8.zip | |
Feature: Tunnels maps (#1546)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt index b81a25599..0ae712f9d 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt @@ -7,6 +7,7 @@ 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.model.Graph import at.hannibal2.skyhanni.events.GuiKeyPressEvent import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.LorenzChatEvent @@ -43,6 +44,7 @@ import at.hannibal2.skyhanni.utils.NEUItems.getPriceOrNull import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators import at.hannibal2.skyhanni.utils.OSUtils import at.hannibal2.skyhanni.utils.ReflectionUtils.makeAccessible +import at.hannibal2.skyhanni.utils.RenderUtils.draw3DPathWithWaypoint import at.hannibal2.skyhanni.utils.RenderUtils.drawDynamicText import at.hannibal2.skyhanni.utils.RenderUtils.renderRenderables import at.hannibal2.skyhanni.utils.RenderUtils.renderString @@ -52,6 +54,7 @@ import at.hannibal2.skyhanni.utils.SoundUtils import at.hannibal2.skyhanni.utils.renderables.Renderable import at.hannibal2.skyhanni.utils.renderables.Renderable.Companion.renderBounds import kotlinx.coroutines.launch +import kotlinx.coroutines.runBlocking import net.minecraft.client.Minecraft import net.minecraft.init.Blocks import net.minecraft.init.Items @@ -59,6 +62,7 @@ import net.minecraft.item.ItemStack import net.minecraft.nbt.NBTTagCompound import net.minecraftforge.common.MinecraftForge import net.minecraftforge.fml.common.eventhandler.SubscribeEvent +import java.awt.Color import java.io.File import kotlin.time.Duration.Companion.seconds @@ -116,9 +120,14 @@ class SkyHanniDebugsAndTests { ChatUtils.chat("set test waypoint") } + var path: Graph = Graph(emptyList()) + fun testCommand(args: Array<String>) { SoundUtils.playBeepSound() - + runBlocking { + val input = OSUtils.readFromClipboard() ?: return@runBlocking + path = Graph.fromJson(input) + } // val a = Thread { OSUtils.copyToClipboard("123") } // val b = Thread { OSUtils.copyToClipboard("456") } // a.start() @@ -425,6 +434,11 @@ class SkyHanniDebugsAndTests { } @SubscribeEvent + fun onTestGraphPath(event: LorenzRenderWorldEvent) { + event.draw3DPathWithWaypoint(path, Color.GREEN, 8, true) + } + + @SubscribeEvent fun onShowInternalName(event: LorenzToolTipEvent) { if (!LorenzUtils.inSkyBlock) return if (!debugConfig.showInternalName) return |
