aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/command/OneConfigCommand.java
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-03 18:25:32 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-05-03 18:25:32 +0200
commita0ff501947a84b268e099524a06b56a6b900dad2 (patch)
treedb27ca1b28dbc7e57b8c99f54c80732d3042e856 /src/main/java/io/polyfrost/oneconfig/command/OneConfigCommand.java
parentb798930b21b89b81be05a31281f768667a6dd7f3 (diff)
downloadOneConfig-a0ff501947a84b268e099524a06b56a6b900dad2.tar.gz
OneConfig-a0ff501947a84b268e099524a06b56a6b900dad2.tar.bz2
OneConfig-a0ff501947a84b268e099524a06b56a6b900dad2.zip
move to cc.polyfrost
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/command/OneConfigCommand.java')
-rw-r--r--src/main/java/io/polyfrost/oneconfig/command/OneConfigCommand.java55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/command/OneConfigCommand.java b/src/main/java/io/polyfrost/oneconfig/command/OneConfigCommand.java
deleted file mode 100644
index f792ee7..0000000
--- a/src/main/java/io/polyfrost/oneconfig/command/OneConfigCommand.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package io.polyfrost.oneconfig.command;
-
-import io.polyfrost.oneconfig.gui.HudGui;
-import io.polyfrost.oneconfig.gui.OneConfigGui;
-import io.polyfrost.oneconfig.test.TestNanoVGGui;
-import io.polyfrost.oneconfig.utils.TickDelay;
-import net.minecraft.client.Minecraft;
-import net.minecraft.command.CommandBase;
-import net.minecraft.command.ICommandSender;
-
-import java.util.ArrayList;
-import java.util.List;
-
-public class OneConfigCommand extends CommandBase {
-
- private static final Minecraft mc = Minecraft.getMinecraft();
-
- @Override
- public String getCommandName() {
- return "oneconfig";
- }
-
- @Override
- public String getCommandUsage(ICommandSender sender) {
- return "oneconfig <>";
- }
-
- @Override
- public List<String> getCommandAliases() {
- return new ArrayList<String>() {{
- add("oneconfig");
- add("ocfg");
- }};
- }
-
- @Override
- public void processCommand(ICommandSender sender, String[] args) {
- if (args.length == 0) new TickDelay(() -> mc.displayGuiScreen(new OneConfigGui()), 1);
- else {
- switch (args[0]) {
- case "hud":
- new TickDelay(() -> mc.displayGuiScreen(new HudGui()), 1);
- break;
- case "lwjgl":
- new TickDelay(() -> mc.displayGuiScreen(new TestNanoVGGui()), 1);
- break;
- }
- }
- }
-
- @Override
- public int getRequiredPermissionLevel() {
- return -1;
- }
-}