Class SuggestionResult
java.lang.Object
dev.rollczi.litecommands.suggestion.SuggestionResult
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Suggestion suggestion) voidaddAll(SuggestionResult result) voidaddAll(Collection<Suggestion> suggestions) appendLeft(Iterable<String> suggestions) appendLeft(String... suggestions) appendLeftDirectly(String partToAppend) Appends the given part directly to the left of the suggestion.appendRight(Iterable<String> suggestions) appendRight(String... suggestions) voidclear()static SuggestionResultCollectorstatic <T> SuggestionResultTooltipCollector<T> static <T> SuggestionResultTooltipCollector<T> static SuggestionResultempty()filterBy(Suggestion suggestion) static SuggestionResultfrom(Suggestion... suggestions) static SuggestionResultfrom(Iterable<Suggestion> suggestions) static SuggestionResultstatic SuggestionResultvoidremove(Suggestion suggestion)
-
Method Details
-
addAll
-
add
-
remove
-
clear
@Internal public void clear() -
addAll
-
filterBy
-
getSuggestions
-
asMultiLevelList
-
appendLeft
-
appendLeft
-
appendLeftDirectly
Appends the given part directly to the left of the suggestion. (without any space) -
appendRight
-
appendRight
-
of
-
empty
-
of
-
from
-
from
-
collector
-
collector
@Experimental public static <T> SuggestionResultTooltipCollector<T> collector(Function<T, String> suggestion) -
collector
@Experimental public static <T> SuggestionResultTooltipCollector<T> collector(Function<T, String> suggestion, Function<T, String> tooltip)
-