Add limited support for completions, add .editorconfig and reformat.
This commit is contained in:
parent
10aba61110
commit
762bdb7ff4
22 changed files with 676 additions and 203 deletions
|
|
@ -27,6 +27,8 @@ import com.intellectualsites.commands.context.CommandContext;
|
|||
import com.intellectualsites.commands.sender.CommandSender;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Queue;
|
||||
|
||||
@FunctionalInterface
|
||||
|
|
@ -42,4 +44,9 @@ public interface ComponentParser<C extends CommandSender, T> {
|
|||
@Nonnull
|
||||
ComponentParseResult<T> parse(@Nonnull CommandContext<C> commandContext, @Nonnull Queue<String> inputQueue);
|
||||
|
||||
@Nonnull
|
||||
default List<String> suggestions(@Nonnull final CommandContext<C> commandContext, @Nonnull final String input) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue