Class ModListHandler


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

      Fields 
      Modifier and Type Field Description
      private static org.apache.logging.log4j.Logger LOGGER  
    • Constructor Summary

      Constructors 
      Constructor Description
      ModListHandler()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> processModLists​(java.util.List<java.lang.String> modListPaths, java.util.List<java.nio.file.Path> mavenRootPaths)
      Reads the modList paths specified, and searches each maven root for mods matching.
      private static java.util.List<java.lang.String> readListFile​(java.nio.file.Path filePath)
      Simple list file, ending in ".list" with one mod coordinate per line
      private static java.util.List<java.lang.String> transformPathToList​(java.lang.String 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
    • Constructor Detail

      • ModListHandler

        public ModListHandler()
    • Method Detail

      • processModLists

        public static java.util.List<java.lang.String> processModLists​(java.util.List<java.lang.String> modListPaths,
                                                                       java.util.List<java.nio.file.Path> mavenRootPaths)
        Reads the modList paths specified, and searches each maven root for mods matching. Returns a list of mods found.
        Parameters:
        modListPaths - Paths to search for mod file lists
        mavenRootPaths - Roots to look for mods listed
        Returns:
        list of found mod coordinates
      • transformPathToList

        private static java.util.List<java.lang.String> transformPathToList​(java.lang.String path)
      • readListFile

        private static java.util.List<java.lang.String> readListFile​(java.nio.file.Path filePath)
        Simple list file, ending in ".list" with one mod coordinate per line
        Parameters:
        filePath - path
        Returns:
        list