aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-08-07 11:35:32 +0200
committerLorenz <lo.scherf@gmail.com>2022-08-07 11:35:32 +0200
commit6d4812dd42cf79d5e39fab37851ef1b633176eda (patch)
tree43a2866dc3c09d7be91d4979960d9d98927c7300 /src/main/java/at/hannibal2/skyhanni/config
parent554d2d2a0b43036d807bcee45ded670a23c4a333 (diff)
downloadskyhanni-6d4812dd42cf79d5e39fab37851ef1b633176eda.tar.gz
skyhanni-6d4812dd42cf79d5e39fab37851ef1b633176eda.tar.bz2
skyhanni-6d4812dd42cf79d5e39fab37851ef1b633176eda.zip
moved copy nearby entity command into single class
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/gui/commands/Commands.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/gui/commands/Commands.java b/src/main/java/at/hannibal2/skyhanni/config/gui/commands/Commands.java
index 72e6c0ea1..fe3a6f791 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/gui/commands/Commands.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/gui/commands/Commands.java
@@ -3,6 +3,7 @@ package at.hannibal2.skyhanni.config.gui.commands;
import at.hannibal2.skyhanni.SkyHanniMod;
import at.hannibal2.skyhanni.config.gui.config.ConfigEditor;
import at.hannibal2.skyhanni.config.gui.core.GuiScreenElementWrapper;
+import at.hannibal2.skyhanni.test.CopyNearbyEntitiesCommand;
import at.hannibal2.skyhanni.test.LorenzTest;
import net.minecraft.command.ICommandSender;
import net.minecraftforge.client.ClientCommandHandler;
@@ -66,5 +67,15 @@ public class Commands {
}
)
);
+ ClientCommandHandler.instance.registerCommand(
+ new SimpleCommand(
+ "copyentities",
+ new SimpleCommand.ProcessCommandRunnable() {
+ public void processCommand(ICommandSender sender, String[] args) {
+ CopyNearbyEntitiesCommand.Companion.testCommand(args);
+ }
+ }
+ )
+ );
}
}