public class Commands
extends java.lang.Object
Constructor and Description |
---|
Commands() |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(@NotNull Command command)
Adds an executable
Command . |
@Nullable Command |
findCommand(@NotNull java.lang.String commandName)
Returns a
Command by name. |
@NotNull java.util.Collection<java.lang.String> |
getCommands()
Returns all defined commands.
|
public void addCommand(@NotNull @NotNull Command command)
Command
.command
- the command to add@NotNull public @NotNull java.util.Collection<java.lang.String> getCommands()