2022-05-05 19:37:52 +02:00
|
|
|
package at.petrak.hexcasting.common.lib;
|
2022-01-22 18:46:48 +01:00
|
|
|
|
2022-05-05 19:37:52 +02:00
|
|
|
import at.petrak.hexcasting.common.command.BrainsweepCommand;
|
2023-07-08 22:23:22 +02:00
|
|
|
import at.petrak.hexcasting.common.command.ListPerWorldPatternsCommand;
|
2022-05-05 19:37:52 +02:00
|
|
|
import at.petrak.hexcasting.common.command.RecalcPatternsCommand;
|
2022-05-09 18:02:35 +02:00
|
|
|
import com.mojang.brigadier.CommandDispatcher;
|
|
|
|
import net.minecraft.commands.CommandSourceStack;
|
2022-11-03 18:29:48 +01:00
|
|
|
import net.minecraft.commands.Commands;
|
2022-01-22 18:46:48 +01:00
|
|
|
|
|
|
|
public class HexCommands {
|
2022-05-09 18:02:35 +02:00
|
|
|
public static void register(CommandDispatcher<CommandSourceStack> dispatcher) {
|
2022-11-03 18:29:48 +01:00
|
|
|
var mainCmd = Commands.literal("hexcasting");
|
|
|
|
|
|
|
|
BrainsweepCommand.add(mainCmd);
|
2023-07-08 22:23:22 +02:00
|
|
|
ListPerWorldPatternsCommand.add(mainCmd);
|
2022-11-03 18:29:48 +01:00
|
|
|
RecalcPatternsCommand.add(mainCmd);
|
|
|
|
|
|
|
|
dispatcher.register(mainCmd);
|
2022-01-22 18:46:48 +01:00
|
|
|
}
|
|
|
|
}
|