Package redempt.ordinate.help
Class HelpEntry<T>
java.lang.Object
redempt.ordinate.help.HelpEntry<T>
- Type Parameters:
T
- The sender type
Represents help metadata used to generate help messages for commands
-
Field Details
-
page
-
-
Constructor Details
-
HelpEntry
-
-
Method Details
-
getPage
- Returns:
- The page this help entry is associated with
-
getOwner
- Returns:
- The command this help entry describes
-
getComponents
- Returns:
- The individual components of this help entry
-
addFilter
Adds a filter to constrain the visibility of this help entry- Parameters:
constraint
- The filter
-
isVisibleTo
Checks this help entry's filters against the sender- Parameters:
sender
- The sender- Returns:
- Whether this help entry should be visible to the sender
-
getParentPrefix
- Returns:
- The names of the parents of the command described by this help entry, joined by spaces
-
getUsage
- Returns:
- The name of the command followed by formatted arguments demonstrating its usage
-
getDescription
- Returns:
- The help message for the command
-
toString
-