public interface ITabCompleter
Modifier and Type | Field and Description |
---|---|
static ITabCompleter |
EMPTY |
static ITabCompleter |
PLAYER |
Modifier and Type | Method and Description |
---|---|
List<String> |
getCandidates(String part)
Get possible candidates commands, which can fit into the current argument the player is about to enter.
|
List<String> |
getHint()
Get simple help string that will show up to the player.
|
static ITabCompleter |
hint(String hint) |
static List<String> |
list(String... strings) |
static ITabCompleter |
simple(String... arg) |
static final ITabCompleter EMPTY
static final ITabCompleter PLAYER
static ITabCompleter hint(String hint)
static ITabCompleter simple(String... arg)
List<String> getCandidates(String part)
part
- the partially completed command.List<String> getHint()
getCandidates(String)
, this method
will be called when there is no character exist in the place of current argument.
getCandidates(String)
,
it will behave as same as the naive tab completer.