Class StandardHelpRenderer<S extends Source,C>
java.lang.Object
studio.mevera.imperat.command.tree.help.renderers.StandardHelpRenderer<S,C>
- Type Parameters:
S- the source typeC- the component type
- All Implemented Interfaces:
HelpLayoutRenderer<S,C>
public final class StandardHelpRenderer<S extends Source,C>
extends Object
implements HelpLayoutRenderer<S,C>
Standard help renderer that supports both tree and flat presentation styles.
Uses theme-driven layout selection and properly processes the HelpEntryList
with efficient direct path analysis using parameter.position() and parameter.isCommand().
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(@NotNull ExecutionContext<S> context, @NotNull HelpEntryList<S> helpEntries, @NotNull HelpTheme<S, C> theme) Renders the help documentation to the source.
-
Constructor Details
-
StandardHelpRenderer
public StandardHelpRenderer()
-
-
Method Details
-
render
public void render(@NotNull @NotNull ExecutionContext<S> context, @NotNull @NotNull HelpEntryList<S> helpEntries, @NotNull @NotNull HelpTheme<S, C> theme) Description copied from interface:HelpLayoutRendererRenders the help documentation to the source.- Specified by:
renderin interfaceHelpLayoutRenderer<S extends Source,C> - Parameters:
context- The execution context, containing information about the command and source.helpEntries- A list of all available help entries for the current context.theme- The theme that controls how the help is displayed.
-