Class StandardHelpRenderer<S extends Source,C>

java.lang.Object
studio.mevera.imperat.command.tree.help.renderers.StandardHelpRenderer<S,C>
Type Parameters:
S - the source type
C - 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 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: HelpLayoutRenderer
      Renders the help documentation to the source.
      Specified by:
      render in interface HelpLayoutRenderer<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.