Class IndexAssetCommand


  • public final class IndexAssetCommand
    extends Command
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String INDEXES_DIR  
      static java.lang.String OBJECTS_DIR  
      • Fields inherited from class pro.gravit.launchserver.command.Command

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

        childCommands
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getArgsDescription()  
      java.lang.String getUsageDescription()  
      void invoke​(java.lang.String... args)  
      static java.nio.file.Path resolveIndexFile​(java.nio.file.Path assetDir, java.lang.String name)  
      static java.nio.file.Path resolveObjectFile​(java.nio.file.Path assetDir, java.lang.String hash)  
      • Methods inherited from class pro.gravit.utils.command.Command

        buildCandidate, complete, invokeSubcommands, parseUsername, parseUUID, verifyArgs
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IndexAssetCommand

        public IndexAssetCommand​(LaunchServer server)
    • Method Detail

      • resolveIndexFile

        public static java.nio.file.Path resolveIndexFile​(java.nio.file.Path assetDir,
                                                          java.lang.String name)
      • resolveObjectFile

        public static java.nio.file.Path resolveObjectFile​(java.nio.file.Path assetDir,
                                                           java.lang.String hash)
      • getArgsDescription

        public java.lang.String getArgsDescription()
        Specified by:
        getArgsDescription in class pro.gravit.utils.command.Command
      • getUsageDescription

        public java.lang.String getUsageDescription()
        Specified by:
        getUsageDescription in class pro.gravit.utils.command.Command
      • invoke

        public void invoke​(java.lang.String... args)
                    throws java.lang.Exception
        Specified by:
        invoke in class pro.gravit.utils.command.Command
        Throws:
        java.lang.Exception