.
This commit is contained in:
parent
76784dba7e
commit
f9c60fdae0
4 changed files with 38 additions and 8 deletions
|
|
@ -1,10 +1,11 @@
|
|||
package de.kencommand.api.parsing;
|
||||
|
||||
import de.kentoj.scrow.bukkit.command.literal.CommandArgument;
|
||||
import de.kencommand.api.processing.CommandContext;
|
||||
import de.kencommand.api.structure.argument.CommandArgument;
|
||||
|
||||
public interface ParsedArgument<T> {
|
||||
public interface ParsedArgument<T, S extends CommandContext<T>, V> {
|
||||
|
||||
T getValue();
|
||||
V getValue();
|
||||
|
||||
CommandArgument<T> getArgument();
|
||||
CommandArgument<T, S, V> getArgument();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,5 +9,5 @@ public interface ArgumentNode<T, S extends CommandContext<T>> {
|
|||
|
||||
<V> void addArgument(CommandArgument<T, S, V> argument);
|
||||
|
||||
Set<CommandArgument<T, S, Object>> getArguments();
|
||||
Set<CommandArgument<T, S, ?>> getArguments();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import org.jetbrains.annotations.Nullable;
|
|||
* @param <T> type of command sender
|
||||
* @param <S> type of command context
|
||||
*/
|
||||
public interface CommandNode<T, S extends CommandContext<T>> extends LiteralNode<T, S> {
|
||||
public interface CommandNode<T, S extends CommandContext<T>> extends LiteralNode<T, S>, ArgumentNode<T, S> {
|
||||
|
||||
@NotNull String[] getNames();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue