This commit is contained in:
kento2 2026-04-14 22:35:16 +02:00
parent 76784dba7e
commit f9c60fdae0
4 changed files with 38 additions and 8 deletions

View file

@ -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();
}

View file

@ -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();
}

View file

@ -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();