summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-05-26 21:49:16 +1000
committerGitHub <noreply@github.com>2024-05-26 13:49:16 +0200
commita568266ec91e8ddbc8b8dc86ece9b2803eda5a9e (patch)
tree851fac54976c90b999e83c29b6abaef87f521417 /src/main/java/at/hannibal2/skyhanni/config
parente78e440df6c071b2023c19ea311305e643378fb4 (diff)
downloadskyhanni-a568266ec91e8ddbc8b8dc86ece9b2803eda5a9e.tar.gz
skyhanni-a568266ec91e8ddbc8b8dc86ece9b2803eda5a9e.tar.bz2
skyhanni-a568266ec91e8ddbc8b8dc86ece9b2803eda5a9e.zip
Backend: Track particles command (#1787)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/ConfigManager.kt1
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt10
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/dev/DebugConfig.java4
3 files changed, 10 insertions, 5 deletions
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
@@ -476,6 +476,10 @@ object Commands {
"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"
) { TabListData.copyCommand(it) }
@@ -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);
}