Class CommandStore.StoredCommand
-
- All Implemented Interfaces:
public final class CommandStore.StoredCommand
Contains detailed information on a loaded command.
- Since:
2.0
-
-
Method Summary
Modifier and Type Method Description Class<out BaseCommand>
getCommandClass()
Returns the class object for this command's implementation. String
getName()
Returns the name of this command (what the player would enter to use it). String
getSyntax()
Returns the syntax for this command. String
getHelp()
Returns the detailed usage instructions for this command. String
getSource()
Returns the complete file path of the CSV this command was loaded from (not the relative path). List<String>
getTags()
Returns all tags associated with this command. -
-
Method Detail
-
getCommandClass
Class<out BaseCommand> getCommandClass()
Returns the class object for this command's implementation.
- Returns:
The Class of the BaseCommand implementation that will be instantiated when this command is run.
- Since:
2.0
-
getName
String getName()
Returns the name of this command (what the player would enter to use it).
- Returns:
The name of this command, taken from the 'name' column of the CSV.
- Since:
2.0
-
getSyntax
String getSyntax()
Returns the syntax for this command.
- Returns:
The syntax for this command, taken from the 'syntax' column of the CSV.
- Since:
2.0
-
getHelp
String getHelp()
Returns the detailed usage instructions for this command.
- Returns:
The detailed help for this command, taken from the 'help' column of the CSV.
- Since:
2.0
-
getSource
String getSource()
Returns the complete file path of the CSV this command was loaded from (not the relative path). Useful for determining which mod added this command.
- Returns:
The complete file path of the CSV this command was loaded from. There is no other way to retrieve this information in the current API.
- Since:
2.0
-
-
-
-