Class HelpEntry<S extends CommandSource>
java.lang.Object
studio.mevera.imperat.command.tree.help.HelpEntry<S>
- Type Parameters:
S- The type ofCommandSourcefrom which the command was executed.
Represents a final, immutable entry for a single executable command in the help system.
This class encapsulates a CommandPathway that represents an executable command usage.
It serves as a reliable data model for displaying help information.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this HelpEntry to another object for equality.@NotNull CommandPathway<S>Retrieves the command usage pathway associated with this help entry.inthashCode()Computes the hash code for this HelpEntry based on its pathway.
-
Method Details
-
getPathway
Retrieves the command usage pathway associated with this help entry.- Returns:
- The pathway of the command.
-
equals
Compares this HelpEntry to another object for equality.Two help entries are considered equal if their underlying pathways are equal.
-
hashCode
public int hashCode()Computes the hash code for this HelpEntry based on its pathway.
-