@FunctionalInterface
public interface HelpGenerator<Text>
| Modifier and Type | Interface and Description |
|---|---|
static class |
HelpGenerator.Default<T> |
| Modifier and Type | Field and Description |
|---|---|
static int |
RESULTS_PER_PAGE |
| Modifier and Type | Method and Description |
|---|---|
default @NotNull java.util.List<BladeCommand> |
filterCommands(@NotNull Context context,
@NotNull java.util.List<BladeCommand> commands,
@NotNull java.lang.String filterInput)
Filters the provided list of commands based on visibility and a filter input.
|
@NotNull java.util.List<Text> |
generate(@NotNull Context context,
@NotNull java.util.List<BladeCommand> commands)
Generates help text for the given list of commands within the provided context.
|
static final int RESULTS_PER_PAGE
@NotNull @NotNull java.util.List<Text> generate(@NotNull @NotNull Context context, @NotNull @NotNull java.util.List<BladeCommand> commands)
context - the context in which the help is generatedcommands - the list of commands to generate help for@ApiStatus.NonExtendable @NotNull default @NotNull java.util.List<BladeCommand> filterCommands(@NotNull @NotNull Context context, @NotNull @NotNull java.util.List<BladeCommand> commands, @NotNull @NotNull java.lang.String filterInput)
context - the context in which the filtering is performedcommands - the list of commands to filterfilterInput - the input string used for filtering commands