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
ctx
Fields inherited from class io.github.headlesshq.headlessmc.api.command.AbstractCommand
args, description, name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(AccountsCommand.ValidatedAccountWithId account, String... args) void
Executes this command.Methods inherited from class io.github.headlesshq.headlessmc.api.command.AbstractCommand
getArgDescription, getArgs, getArgs2Descriptions, matches
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.headlesshq.headlessmc.api.command.FindByCommand
findObject, getCompletions, onObjectNotFound
Methods inherited from interface io.github.headlesshq.headlessmc.api.command.HasArguments
getArgDescription, getArgs, getArgs2Descriptions
Methods inherited from interface io.github.headlesshq.headlessmc.api.command.HasDescription
getDescription
-
Constructor Details
-
AccountsCommand
-
-
Method Details
-
execute
Description copied from interface:Command
Executes this command.- Specified by:
execute
in interfaceCommand
- Specified by:
execute
in 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:
execute
in interfaceFindByCommand<AccountsCommand.ValidatedAccountWithId>
- Throws:
CommandException
-
getIterable
- Specified by:
getIterable
in interfaceFindByCommand<AccountsCommand.ValidatedAccountWithId>
-