22 lines
790 B
Java
22 lines
790 B
Java
package de.kencommand;
|
|
|
|
import de.kencommand.api.processing.CommandContext;
|
|
import de.kencommand.api.structure.argument.ArgumentType;
|
|
import de.kencommand.api.structure.argument.CommandArgument;
|
|
import de.kencommand.api.structure.node.CommandNode;
|
|
import de.kencommand.impl.structure.argument.CommandArgumentImpl;
|
|
import de.kencommand.impl.structure.node.CommandNodeImpl;
|
|
|
|
public class KenCommandAPI {
|
|
|
|
private KenCommandAPI() {
|
|
}
|
|
|
|
public static <T, S extends CommandContext<T>> CommandNode<T, S> createCommandNode(String[] names) {
|
|
return new CommandNodeImpl<T, S>(names);
|
|
}
|
|
|
|
public static <T, S extends CommandContext<T>, V> CommandArgument<T, S, V> createArgument(String id, ArgumentType<V> type) {
|
|
return new CommandArgumentImpl<>(id, type);
|
|
}
|
|
}
|