LIGMA BALLS

This commit is contained in:
Chayapak 2023-05-06 15:32:59 +07:00
parent 8ae88917e1
commit a5a52c67a0

View file

@ -17,7 +17,7 @@ import land.chipmunk.chipmunkmod.ChipmunkMod;
import land.chipmunk.chipmunkmod.commands.*; import land.chipmunk.chipmunkmod.commands.*;
public class CommandManager { public class CommandManager {
public static CommandDispatcher<FabricClientCommandSource> dispatcher = new CommandDispatcher(); public static CommandDispatcher<FabricClientCommandSource> dispatcher = new CommandDispatcher<>();
public static String prefix = ChipmunkMod.CONFIG.commands.prefix; public static String prefix = ChipmunkMod.CONFIG.commands.prefix;
public static void executeCommand (String command) { public static void executeCommand (String command) {
@ -63,8 +63,8 @@ public class CommandManager {
return text; return text;
} }
public static LiteralArgumentBuilder<FabricClientCommandSource> literal (String name) { return LiteralArgumentBuilder.<FabricClientCommandSource>literal(name); } public static LiteralArgumentBuilder<FabricClientCommandSource> literal (String name) { return LiteralArgumentBuilder.literal(name); }
public static <T> RequiredArgumentBuilder<FabricClientCommandSource, T> argument (String name, ArgumentType<T> type) { return RequiredArgumentBuilder.<FabricClientCommandSource, T>argument(name, type); } public static <T> RequiredArgumentBuilder<FabricClientCommandSource, T> argument (String name, ArgumentType<T> type) { return RequiredArgumentBuilder.argument(name, type); }
static { static {
TestCommand.register(dispatcher); TestCommand.register(dispatcher);