Class Command

java.lang.Object
pro.gravit.utils.command.Command
pro.gravit.launchserver.command.Command
Direct Known Subclasses:
BuildCommand, ClientsCommand, ComponentCommand, ConfigCommand, 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

    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
    protected pro.gravit.utils.Downloader
    downloadWithProgressBar(String taskName, List<pro.gravit.launcher.AsyncDownloader.SizedFile> list, String baseUrl, Path targetDir)
     
    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

    • showApplyDialog

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

      protected pro.gravit.utils.Downloader downloadWithProgressBar(String taskName, List<pro.gravit.launcher.AsyncDownloader.SizedFile> list, String baseUrl, Path targetDir) throws Exception
      Throws:
      Exception