Package pro.gravit.launchserver.command
Class Command
java.lang.Object
pro.gravit.utils.command.Command
pro.gravit.launchserver.command.Command
- Direct Known Subclasses:
BuildCommand,ClientsCommand,ComponentCommand,ConfigCommand,DebugCommand,DownloadAssetCommand,DownloadClientCommand,IndexAssetCommand,LoadModuleCommand,MakeProfileCommand,ModulesCommand,NotifyCommand,RestartCommand,SaveProfilesCommand,SecurityCheckCommand,ServerStatusCommand,SignDirCommand,SignJarCommand,StopCommand,SyncBinariesCommand,SyncProfilesCommand,SyncUPCommand,SyncUpdatesCommand,TokenCommand,UnindexAssetCommand,VersionCommand
public abstract class Command
extends pro.gravit.utils.command.Command
-
Field Summary
FieldsFields inherited from class pro.gravit.utils.command.Command
childCommands -
Constructor Summary
ConstructorsModifierConstructorDescriptionCommand(Map<String, pro.gravit.utils.command.Command> childCommands, LaunchServer server) protectedCommand(LaunchServer server) -
Method Summary
Modifier and TypeMethodDescriptionprotected pro.gravit.launcher.modern.DownloaderdownloadWithProgressBar(String taskName, List<pro.gravit.launcher.modern.Downloader.SizedFile> list, String baseUrl, Path targetDir) protected pro.gravit.launcher.profiles.ClientProfile.VersionparseClientVersion(String arg) protected booleanshowApplyDialog(String text) Methods inherited from class pro.gravit.utils.command.Command
buildCandidate, complete, getArgsDescription, getUsageDescription, invoke, invokeSubcommands, parseUsername, parseUUID, verifyArgs
-
Field Details
-
server
-
-
Constructor Details
-
Command
-
Command
-
-
Method Details
-
parseClientVersion
protected pro.gravit.launcher.profiles.ClientProfile.Version parseClientVersion(String arg) throws pro.gravit.utils.command.CommandException - Throws:
pro.gravit.utils.command.CommandException
-
showApplyDialog
- Throws:
IOException
-
downloadWithProgressBar
protected pro.gravit.launcher.modern.Downloader downloadWithProgressBar(String taskName, List<pro.gravit.launcher.modern.Downloader.SizedFile> list, String baseUrl, Path targetDir) throws Exception - Throws:
Exception
-