Interface TabCompleter
- All Known Implementing Classes:
MaterialsCompleter,MethodInvocationCompleter,OnlinePlayersCompleter,StaticSuggestionsCompleter,WorldsCompleter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy interface for providing tab completion suggestions.
Implementations can provide different types of suggestions based on context.
Tab 补全建议的策略接口。 实现可以根据上下文提供不同类型的建议。
- Since:
- 6.2.0
- Version:
- 1.0.0
- Author:
- wisdomme
-
Method Summary
Modifier and TypeMethodDescriptioncomplete(TabCompletionContext context) Generates completion suggestions based on the given context.
-
Method Details
-
complete
Generates completion suggestions based on the given context. 根据给定的上下文生成补全建议。- Parameters:
context- the tab completion context containing command state- Returns:
- list of suggestions, never null
-