public class DefaultCommandManager extends Object implements systems.reformcloud.reformcloud2.executor.api.command.CommandManager
| Constructor and Description |
|---|
DefaultCommandManager() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Optional<systems.reformcloud.reformcloud2.executor.api.command.CommandContainer> |
getCommand(@NotNull String anyAlias) |
@NotNull @UnmodifiableView Collection<systems.reformcloud.reformcloud2.executor.api.command.CommandContainer> |
getCommands() |
boolean |
process(@NotNull String commandLine,
@NotNull systems.reformcloud.reformcloud2.executor.api.command.CommandSender commandSender) |
@NotNull systems.reformcloud.reformcloud2.executor.api.command.CommandManager |
registerCommand(@NotNull systems.reformcloud.reformcloud2.executor.api.command.Command command,
@NotNull String description,
@NotNull List<String> aliases) |
@NotNull List<String> |
suggest(@NotNull String commandLine,
@NotNull systems.reformcloud.reformcloud2.executor.api.command.CommandSender commandSender) |
void |
unregisterCommand(@NotNull systems.reformcloud.reformcloud2.executor.api.command.CommandContainer command) |
void |
unregisterCommand(String... aliases) |
@NotNull
public @NotNull systems.reformcloud.reformcloud2.executor.api.command.CommandManager registerCommand(@NotNull
@NotNull systems.reformcloud.reformcloud2.executor.api.command.Command command,
@NotNull
@NotNull String description,
@NotNull
@NotNull List<String> aliases)
registerCommand in interface systems.reformcloud.reformcloud2.executor.api.command.CommandManagerpublic void unregisterCommand(@NotNull
@NotNull systems.reformcloud.reformcloud2.executor.api.command.CommandContainer command)
unregisterCommand in interface systems.reformcloud.reformcloud2.executor.api.command.CommandManagerpublic void unregisterCommand(@NotNull
String... aliases)
unregisterCommand in interface systems.reformcloud.reformcloud2.executor.api.command.CommandManager@NotNull public @NotNull Optional<systems.reformcloud.reformcloud2.executor.api.command.CommandContainer> getCommand(@NotNull @NotNull String anyAlias)
getCommand in interface systems.reformcloud.reformcloud2.executor.api.command.CommandManager@NotNull public @NotNull @UnmodifiableView Collection<systems.reformcloud.reformcloud2.executor.api.command.CommandContainer> getCommands()
getCommands in interface systems.reformcloud.reformcloud2.executor.api.command.CommandManagerpublic boolean process(@NotNull
@NotNull String commandLine,
@NotNull
@NotNull systems.reformcloud.reformcloud2.executor.api.command.CommandSender commandSender)
process in interface systems.reformcloud.reformcloud2.executor.api.command.CommandManagerCopyright © 2020. All rights reserved.