From 93c0a099082aad59bc7a7e09a4027d59768015a5 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 24 Sep 2022 19:57:37 +0200 Subject: changed lorenz test --- src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt index 2e803bbdd..e7574bb85 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt @@ -43,6 +43,18 @@ class LorenzTest { } fun testCommand(args: Array) { + +// for ((i, s) in ScoreboardData.sidebarLinesFormatted().withIndex()) { +// println("$i: '$s'") +// } + +// val name = args[0] +// val pitch = args[1].toFloat() +// val sound = SoundUtils.createSound("note.harp", 1.35f) +// val sound = SoundUtils.createSound("random.orb", 11.2f) +// SoundUtils.createSound(name, pitch).playSound() + + // a = args[0].toDouble() // b = args[1].toDouble() // c = args[2].toDouble() @@ -104,6 +116,7 @@ class LorenzTest { @SubscribeEvent fun renderOverlay(event: RenderGameOverlayEvent.Post) { + if (event.type != RenderGameOverlayEvent.ElementType.ALL) return if (!LorenzUtils.inSkyblock) return if (!SkyHanniMod.feature.dev.debugEnabled) return @@ -144,7 +157,7 @@ class LorenzTest { } @SubscribeEvent - fun onSoundEvent(event: PlaySoundEvent) { + fun onSoundPlay(event: PlaySoundEvent) { if (!shouldLogPackets) return @@ -329,7 +342,7 @@ class LorenzTest { } @SubscribeEvent - fun onParticleEvent(event: PlayParticleEvent) { + fun onParticlePlay(event: PlayParticleEvent) { if (!shouldLogPackets) return // val particleType = event.type -- cgit