From 6d4812dd42cf79d5e39fab37851ef1b633176eda Mon Sep 17 00:00:00 2001 From: Lorenz Date: Sun, 7 Aug 2022 11:35:32 +0200 Subject: moved copy nearby entity command into single class --- .../at/hannibal2/skyhanni/config/gui/commands/Commands.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/config') 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); + } + } + ) + ); } } -- cgit