Class LibraryFinder


  • public class LibraryFinder
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.nio.file.Path libsPath  
      private static org.apache.logging.log4j.Logger LOGGER  
    • Constructor Summary

      Constructors 
      Constructor Description
      LibraryFinder()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.nio.file.Path findJarPathFor​(java.lang.String className, java.lang.String jarName)  
      static java.nio.file.Path findJarPathFor​(java.lang.String resourceName, java.lang.String jarName, java.net.URL resource)  
      (package private) static java.nio.file.Path findLibsPath()  
      (package private) static java.nio.file.Path getForgeLibraryPath​(java.lang.String mcVersion, java.lang.String forgeVersion, java.lang.String forgeGroup)  
      (package private) static java.nio.file.Path[] getMCPaths​(java.lang.String mcVersion, java.lang.String mcpVersion, java.lang.String forgeVersion, java.lang.String forgeGroup, java.lang.String type)  
      (package private) static java.lang.String pathStatus​(java.nio.file.Path path)  
      • Methods inherited from class java.lang.Object

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

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • libsPath

        private static java.nio.file.Path libsPath
    • Constructor Detail

      • LibraryFinder

        public LibraryFinder()
    • Method Detail

      • findLibsPath

        static java.nio.file.Path findLibsPath()
      • findJarPathFor

        public static java.nio.file.Path findJarPathFor​(java.lang.String className,
                                                        java.lang.String jarName)
      • findJarPathFor

        public static java.nio.file.Path findJarPathFor​(java.lang.String resourceName,
                                                        java.lang.String jarName,
                                                        java.net.URL resource)
      • getForgeLibraryPath

        static java.nio.file.Path getForgeLibraryPath​(java.lang.String mcVersion,
                                                      java.lang.String forgeVersion,
                                                      java.lang.String forgeGroup)
      • pathStatus

        static java.lang.String pathStatus​(java.nio.file.Path path)
      • getMCPaths

        static java.nio.file.Path[] getMCPaths​(java.lang.String mcVersion,
                                               java.lang.String mcpVersion,
                                               java.lang.String forgeVersion,
                                               java.lang.String forgeGroup,
                                               java.lang.String type)