diff options
author | ingle <inglettronald@gmail.com> | 2022-09-23 21:19:17 -0500 |
---|---|---|
committer | ingle <inglettronald@gmail.com> | 2022-09-23 21:19:17 -0500 |
commit | 982f4e721ea20eaef3056050ad0b6a5058d24354 (patch) | |
tree | 5f95188a33275f22fd9370e81fea6862523a471d /src/main/java/com | |
parent | add142c970d52d33e731fb3a30605a5ef1f128bd (diff) | |
download | DulkirMod-982f4e721ea20eaef3056050ad0b6a5058d24354.tar.gz DulkirMod-982f4e721ea20eaef3056050ad0b6a5058d24354.tar.bz2 DulkirMod-982f4e721ea20eaef3056050ad0b6a5058d24354.zip |
Nothing works yet :+1:
Diffstat (limited to 'src/main/java/com')
6 files changed, 5 insertions, 109 deletions
diff --git a/src/main/java/com/dulkirmod/DulkirMod.java b/src/main/java/com/dulkirmod/DulkirMod.java index 07117c4..937031f 100644 --- a/src/main/java/com/dulkirmod/DulkirMod.java +++ b/src/main/java/com/dulkirmod/DulkirMod.java @@ -6,7 +6,9 @@ import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; -@Mod(modid = "dulkirclient", version = "1.0.0") +import javax.swing.text.JTextComponent; + +@Mod(modid = "dulkirmod", version = "1.0.0") public class DulkirMod { public Commands commands; @@ -19,4 +21,6 @@ public class DulkirMod { public void preinit(FMLPreInitializationEvent event) { this.commands = new Commands(); } + + } 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 |