diff options
| author | Lorenz <ESs95s3P5z8Pheb> | 2022-07-14 11:28:50 +0200 |
|---|---|---|
| committer | Lorenz <ESs95s3P5z8Pheb> | 2022-07-14 11:28:50 +0200 |
| commit | 6108ddcf353390cc0d2ddd40e3802d025fc5f4a4 (patch) | |
| tree | 92f5f8aff5bbbde1a98bfaa6ab794ec91965cc1e /src/main/java/com/thatgravyboat/amod/commands/Commands.java | |
| parent | c65416e03ce0791c4a99e9bdfc18c0fa0863028a (diff) | |
| download | skyhanni-6108ddcf353390cc0d2ddd40e3802d025fc5f4a4.tar.gz skyhanni-6108ddcf353390cc0d2ddd40e3802d025fc5f4a4.tar.bz2 skyhanni-6108ddcf353390cc0d2ddd40e3802d025fc5f4a4.zip | |
changed packages
Diffstat (limited to 'src/main/java/com/thatgravyboat/amod/commands/Commands.java')
| -rw-r--r-- | src/main/java/com/thatgravyboat/amod/commands/Commands.java | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/main/java/com/thatgravyboat/amod/commands/Commands.java b/src/main/java/com/thatgravyboat/amod/commands/Commands.java deleted file mode 100644 index 97188933a..000000000 --- a/src/main/java/com/thatgravyboat/amod/commands/Commands.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.thatgravyboat.amod.commands; - -import at.lorenz.mod.LorenzMod; -import com.thatgravyboat.amod.config.ConfigEditor; -import com.thatgravyboat.amod.core.GuiScreenElementWrapper; -import net.minecraft.command.ICommandSender; -import net.minecraftforge.client.ClientCommandHandler; -import org.apache.commons.lang3.StringUtils; - -public class Commands { - - private static final boolean devMode = false; - - private static final SimpleCommand.ProcessCommandRunnable settingsRunnable = new SimpleCommand.ProcessCommandRunnable() { - public void processCommand(ICommandSender sender, String[] args) { - if (args.length > 0) { - LorenzMod.screenToOpen = new GuiScreenElementWrapper(new ConfigEditor(LorenzMod.feature, StringUtils.join(args, " "))); - } else { - LorenzMod.screenToOpen = new GuiScreenElementWrapper(new ConfigEditor(LorenzMod.feature)); - } - } - }; - - private static final SimpleCommand settingsCommand = new SimpleCommand("lm", settingsRunnable); - private static final SimpleCommand settingsCommand2 = new SimpleCommand("lorenzmod", settingsRunnable); - - public static void init() { - ClientCommandHandler.instance.registerCommand(settingsCommand); - ClientCommandHandler.instance.registerCommand(settingsCommand2); - } -} |
