Add limited support for completions, add .editorconfig and reformat.

This commit is contained in:
Alexander Söderberg 2020-09-06 16:13:08 +02:00
parent 10aba61110
commit 762bdb7ff4
No known key found for this signature in database
GPG key ID: C0207FF7EA146678
22 changed files with 676 additions and 203 deletions

View file

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