Files
JustEnoughCalculation/src/main/java/me/towdium/jecalculation/command/Commands.java
T
2021-04-28 15:30:53 +08:00

34 lines
922 B
Java

package me.towdium.jecalculation.command;
import me.towdium.jecalculation.command.commands.CommandHelp;
import me.towdium.jecalculation.command.commands.CommandOreDict;
import me.towdium.jecalculation.command.commands.CommandState;
import javax.annotation.ParametersAreNonnullByDefault;
import java.util.HashMap;
/**
* Author: towdium
* Date: 8/10/17.
*/
@ParametersAreNonnullByDefault
public class Commands {
public static final HashMap<String, SubCommand> commands;
public static final CommandHelp commandHelp = new CommandHelp();
public static final CommandState commandState = new CommandState();
public static final CommandOreDict commandOreDict = new CommandOreDict();
static {
commands = new HashMap<>();
add(commandHelp);
add(commandState);
add(commandOreDict);
}
static void add(SubCommand c) {
commands.put(c.getName(), c);
}
}