Class HelpRenderOptions<S extends Source,C>
java.lang.Object
studio.mevera.imperat.command.tree.help.HelpRenderOptions<S,C>
- Type Parameters:
S- The type ofSourcefrom which the command was executed.
Rendering options for customizing help display.
This class serves as a builder for configuring how help documentation should be rendered. It encapsulates settings like the display theme and the layout style, providing a fluent API for easy configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAn enumeration of the available help documentation layouts. -
Method Summary
Modifier and TypeMethodDescriptionGets the current rendering layout.getTheme()Gets the current rendering theme.static <S extends Source,C>
HelpRenderOptions<S,C> of(HelpTheme<S, C> theme, HelpRenderOptions.Layout layout) Creates a new builder for configuring help rendering options.
-
Method Details
-
of
public static <S extends Source,C> HelpRenderOptions<S,C> of(HelpTheme<S, C> theme, HelpRenderOptions.Layout layout) Creates a new builder for configuring help rendering options.- Type Parameters:
S- The type ofSource.- Returns:
- A new instance of
HelpRenderOptions.
-
getTheme
Gets the current rendering theme.- Returns:
- The configured
HelpTheme.
-
getLayout
Gets the current rendering layout.- Returns:
- The configured
HelpRenderOptions.Layout.
-