Class Commands
java.lang.Object
com.realtime.crossfire.jxclient.commands.Commands
Parses and executes client-side commands.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCommand(@NotNull Command command) Adds an executableCommand.@Nullable CommandfindCommand(@NotNull String commandName) Returns aCommandby name.@NotNull Collection<String>Returns all defined commands.
-
Constructor Details
-
Commands
public Commands()
-
-
Method Details
-
addCommand
Adds an executableCommand.- Parameters:
command- the command to add
-
getCommands
Returns all defined commands.- Returns:
- the commands in alphabetical order
-
findCommand
Returns aCommandby name.- Parameters:
commandName- the command name to search- Returns:
- the command or
nullifcommandNameis undefined
-