Package io.github.mqzn.commands.help
Interface CommandHelpStyle<S>
- All Known Implementing Classes:
CommandHelpStyle.ImmutableHelpStyle
public interface CommandHelpStyle<S>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
static final record
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S> CommandHelpStyle.Builder<S>
builder()
@NotNull net.kyori.adventure.text.TextComponent
The header of the help topic@NotNull net.kyori.adventure.text.format.Style
The line style of the help topic@NotNull net.kyori.adventure.text.format.Style
syntaxStyle
(@NotNull CommandSyntax<S> syntax) The style of the syntax of a command
-
Method Details
-
builder
-
lineStyle
@NotNull @NotNull net.kyori.adventure.text.format.Style lineStyle()The line style of the help topic- Returns:
- how the line is displayed in the help topic e.g: "[style]========== Help Menu [style]============
- See Also:
-
Style
-
header
The header of the help topic- Parameters:
label
- the command label (name)- Returns:
- the header of the help topic
-
syntaxStyle
@NotNull @NotNull net.kyori.adventure.text.format.Style syntaxStyle(@NotNull @NotNull CommandSyntax<S> syntax) The style of the syntax of a command- Parameters:
syntax
- the syntax of a command- Returns:
- The style of the syntax of a command
-