Class Command

java.lang.Object
pro.gravit.utils.command.Command
pro.gravit.launchserver.command.Command
Direct Known Subclasses:
BuildCommand, ClientsCommand, CloneProfileCommand, ComponentCommand, ConfigCommand, CreateProfileCommand, DebugCommand, DeleteProfileCommand, IndexAssetCommand, ListProfilesCommand, LoadModuleCommand, ModulesCommand, NotifyCommand, ProfilesCommand, SecurityCheckCommand, ServerStatusCommand, SignDirCommand, SignJarCommand, StopCommand, SyncCommand, SyncLauncherModulesCommand, TokenCommand, UnindexAssetCommand, VersionCommand

public abstract class Command extends pro.gravit.utils.command.Command
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final LaunchServer
     

    Fields inherited from class pro.gravit.utils.command.Command

    childCommands
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Command(Map<String, pro.gravit.utils.command.Command> childCommands, LaunchServer server)
     
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static pro.gravit.launcher.base.Downloader
    downloadWithProgressBar(String taskName, List<pro.gravit.launcher.base.Downloader.SizedFile> list, String baseUrl, Path targetDir)
     
    protected pro.gravit.launcher.base.profiles.ClientProfile.Version
     
    protected boolean
     

    Methods inherited from class pro.gravit.utils.command.Command

    buildCandidate, complete, getArgsDescription, getUsageDescription, invoke, invokeSubcommands, parseUsername, parseUUID, verifyArgs

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • parseClientVersion

      protected pro.gravit.launcher.base.profiles.ClientProfile.Version parseClientVersion(String arg) throws pro.gravit.utils.command.CommandException
      Throws:
      pro.gravit.utils.command.CommandException
    • showApplyDialog

      protected boolean showApplyDialog(String text) throws IOException
      Throws:
      IOException
    • downloadWithProgressBar

      public static pro.gravit.launcher.base.Downloader downloadWithProgressBar(String taskName, List<pro.gravit.launcher.base.Downloader.SizedFile> list, String baseUrl, Path targetDir) throws Exception
      Throws:
      Exception