From a568266ec91e8ddbc8b8dc86ece9b2803eda5a9e Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Sun, 26 May 2024 21:49:16 +1000 Subject: Backend: Track particles command (#1787) --- src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt | 1 + .../java/at/hannibal2/skyhanni/config/commands/Commands.kt | 10 +++++----- .../at/hannibal2/skyhanni/config/features/dev/DebugConfig.java | 4 ++++ 3 files changed, 10 insertions(+), 5 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/config') diff --git a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt index f4f870b72..824726e35 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt @@ -225,6 +225,7 @@ class ConfigManager { // debug features "features.dev.DebugConfig.trackSoundPosition", + "features.dev.DebugConfig.trackParticlePosition", "features.dev.DevConfig.debugPos", "features.dev.DevConfig.debugLocationPos", "features.dev.DevConfig.debugItemPos", diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt index 184549a34..ddadb8177 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt @@ -72,9 +72,9 @@ import at.hannibal2.skyhanni.test.command.CopyActionBarCommand import at.hannibal2.skyhanni.test.command.CopyBossbarCommand import at.hannibal2.skyhanni.test.command.CopyItemCommand import at.hannibal2.skyhanni.test.command.CopyNearbyEntitiesCommand -import at.hannibal2.skyhanni.test.command.CopyNearbyParticlesCommand import at.hannibal2.skyhanni.test.command.CopyScoreboardCommand import at.hannibal2.skyhanni.test.command.TestChatCommand +import at.hannibal2.skyhanni.test.command.TrackParticlesCommand import at.hannibal2.skyhanni.test.command.TrackSoundsCommand import at.hannibal2.skyhanni.utils.APIUtil import at.hannibal2.skyhanni.utils.ChatUtils @@ -475,6 +475,10 @@ object Commands { "shtracksounds", "Tracks the sounds for the specified duration (in seconds) and copies it to the clipboard" ) { TrackSoundsCommand.command(it) } + registerCommand( + "shtrackparticles", + "Tracks the particles for the specified duration (in seconds) and copies it to the clipboard" + ) { TrackParticlesCommand.command(it) } registerCommand( "shcopytablist", "Copies the tab list data to the clipboard" @@ -495,10 +499,6 @@ object Commands { "shcopyitem", "Copies information about the item in hand to the clipboard" ) { CopyItemCommand.command() } - registerCommand( - "shcopyparticles", - "Copied information about the particles that spawn in the next 50ms to the clipboard" - ) { CopyNearbyParticlesCommand.command(it) } registerCommand("shtestpacket", "Logs incoming and outgoing packets to the console") { PacketTest.command(it) } registerCommand( "shtestmessage", diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/dev/DebugConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/dev/DebugConfig.java index 6be8812b8..db2aa868b 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/dev/DebugConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/dev/DebugConfig.java @@ -144,4 +144,8 @@ public class DebugConfig { // Does not have a config element! @Expose public Position trackSoundPosition = new Position(0, 0); + + // Also does not have a config element! + @Expose + public Position trackParticlePosition = new Position(0, 0); } -- cgit