Class AccountsCommand
java.lang.Object
io.github.headlesshq.headlessmc.api.command.AbstractCommand
io.github.headlesshq.headlessmc.launcher.command.AbstractLauncherCommand
io.github.headlesshq.headlessmc.launcher.command.AccountsCommand
- All Implemented Interfaces:
Command,FindByCommand<AccountsCommand.ValidatedAccountWithId>,HasArguments,HasDescription,HasName
public class AccountsCommand
extends AbstractLauncherCommand
implements FindByCommand<AccountsCommand.ValidatedAccountWithId>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class io.github.headlesshq.headlessmc.launcher.command.AbstractLauncherCommand
ctxFields inherited from class io.github.headlesshq.headlessmc.api.command.AbstractCommand
args, description, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(AccountsCommand.ValidatedAccountWithId account, String... args) voidExecutes this command.Methods inherited from class io.github.headlesshq.headlessmc.api.command.AbstractCommand
getArgDescription, getArgs, getArgs2Descriptions, matchesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.headlesshq.headlessmc.api.command.FindByCommand
findObject, getCompletions, onObjectNotFoundMethods inherited from interface io.github.headlesshq.headlessmc.api.command.HasArguments
getArgDescription, getArgs, getArgs2DescriptionsMethods inherited from interface io.github.headlesshq.headlessmc.api.command.HasDescription
getDescription
-
Constructor Details
-
AccountsCommand
-
-
Method Details
-
execute
Description copied from interface:CommandExecutes this command.- Specified by:
executein interfaceCommand- Specified by:
executein interfaceFindByCommand<AccountsCommand.ValidatedAccountWithId>- Parameters:
line- the raw line read from the command line.args- the arguments parsed byCommandUtil.split(String).- Throws:
CommandException- if something went wrong while executing this command.
-
execute
public void execute(AccountsCommand.ValidatedAccountWithId account, String... args) throws CommandException - Specified by:
executein interfaceFindByCommand<AccountsCommand.ValidatedAccountWithId>- Throws:
CommandException
-
getIterable
- Specified by:
getIterablein interfaceFindByCommand<AccountsCommand.ValidatedAccountWithId>
-