This commit is contained in:
kento2 2026-04-14 22:38:02 +02:00
parent f9c60fdae0
commit b8a2124c80

View file

@ -0,0 +1,22 @@
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);
}
}