aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/dulkirmod/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/dulkirmod/commands')
-rw-r--r--src/main/java/com/dulkirmod/commands/ClientCommandBase.java27
-rw-r--r--src/main/java/com/dulkirmod/commands/Commands.java13
-rw-r--r--src/main/java/com/dulkirmod/commands/EnchantRuneCommand.java22
-rw-r--r--src/main/java/com/dulkirmod/commands/FairyCommand.java22
-rw-r--r--src/main/java/com/dulkirmod/commands/HelpCommand.java24
5 files changed, 0 insertions, 108 deletions
diff --git a/src/main/java/com/dulkirmod/commands/ClientCommandBase.java b/src/main/java/com/dulkirmod/commands/ClientCommandBase.java
deleted file mode 100644
index 5f391f9..0000000
--- a/src/main/java/com/dulkirmod/commands/ClientCommandBase.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.dulkirmod.commands;
-
-import net.minecraft.command.CommandBase;
-import net.minecraft.command.ICommandSender;
-
-public abstract class ClientCommandBase extends CommandBase {
- private final String name;
-
- protected ClientCommandBase(String name) {
- this.name = name;
- }
-
- @Override
- public String getCommandName() {
- return name;
- }
-
- @Override
- public String getCommandUsage(ICommandSender sender) {
- return "/" + name;
- }
-
- @Override
- public boolean canCommandSenderUseCommand(ICommandSender sender) {
- return true;
- }
-}
diff --git a/src/main/java/com/dulkirmod/commands/Commands.java b/src/main/java/com/dulkirmod/commands/Commands.java
deleted file mode 100644
index b70ba4e..0000000
--- a/src/main/java/com/dulkirmod/commands/Commands.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package com.dulkirmod.commands;
-
-import net.minecraftforge.client.ClientCommandHandler;
-
-public class Commands {
- public Commands() {
- // Help Commands
- ClientCommandHandler.instance.registerCommand(new HelpCommand());
-
- // General
- ClientCommandHandler.instance.registerCommand(new EnchantRuneCommand());
- }
-} \ No newline at end of file
diff --git a/src/main/java/com/dulkirmod/commands/EnchantRuneCommand.java b/src/main/java/com/dulkirmod/commands/EnchantRuneCommand.java
deleted file mode 100644
index 3a38053..0000000
--- a/src/main/java/com/dulkirmod/commands/EnchantRuneCommand.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.dulkirmod.commands;
-
-import com.dulkirmod.Settings;
-import net.minecraft.client.Minecraft;
-import net.minecraft.command.CommandException;
-import net.minecraft.command.ICommandSender;
-import net.minecraft.util.ChatComponentText;
-import net.minecraft.util.EnumChatFormatting;
-
-public class EnchantRuneCommand extends ClientCommandBase {
-
- public EnchantRuneCommand() {
- super("enchantrune");
- }
-
- @Override
- public void processCommand(ICommandSender sender, String[] args) throws CommandException {
- Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(
- EnumChatFormatting.BLACK+ "" + EnumChatFormatting.BOLD + "TOGGLED."));
- Settings.EnchantRune = !Settings.EnchantRune;
- }
-} \ No newline at end of file
diff --git a/src/main/java/com/dulkirmod/commands/FairyCommand.java b/src/main/java/com/dulkirmod/commands/FairyCommand.java
deleted file mode 100644
index 0acc3a0..0000000
--- a/src/main/java/com/dulkirmod/commands/FairyCommand.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.dulkirmod.commands;
-
-import com.dulkirmod.Settings;
-import net.minecraft.client.Minecraft;
-import net.minecraft.command.CommandException;
-import net.minecraft.command.ICommandSender;
-import net.minecraft.util.ChatComponentText;
-import net.minecraft.util.EnumChatFormatting;
-
-public class FairyCommand extends ClientCommandBase {
-
- public FairyCommand() {
- super("fairy");
- }
-
- @Override
- public void processCommand(ICommandSender sender, String[] args) throws CommandException {
- Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(
- EnumChatFormatting.BLACK+ "" + EnumChatFormatting.BOLD + "TOGGLED."));
- Settings.HealerFairy = !Settings.HealerFairy;
- }
-} \ No newline at end of file
diff --git a/src/main/java/com/dulkirmod/commands/HelpCommand.java b/src/main/java/com/dulkirmod/commands/HelpCommand.java
deleted file mode 100644
index 18dc399..0000000
--- a/src/main/java/com/dulkirmod/commands/HelpCommand.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package com.dulkirmod.commands;
-
-import net.minecraft.client.Minecraft;
-import net.minecraft.command.CommandException;
-import net.minecraft.command.ICommandSender;
-import net.minecraft.util.ChatComponentText;
-import net.minecraft.util.EnumChatFormatting;
-
-public class HelpCommand extends ClientCommandBase {
-
- public HelpCommand() {
- super("dulkir");
- }
-
- @Override
- public void processCommand(ICommandSender sender, String[] args) throws CommandException {
- Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(
- EnumChatFormatting.GOLD + "" + EnumChatFormatting.BOLD + " HI THIS IS DULKIRMOD!"));
- Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(
- EnumChatFormatting.GRAY + "/enchantrune - toggles enchant rune visibility."));
- Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(
- EnumChatFormatting.GRAY + "/fairy - toggles healer fairy visibility."));
- }
-} \ No newline at end of file