.
This commit is contained in:
parent
f9c60fdae0
commit
b8a2124c80
1 changed files with 22 additions and 0 deletions
22
src/main/java/de/kencommand/KenCommandAPI.java
Normal file
22
src/main/java/de/kencommand/KenCommandAPI.java
Normal 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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue