Class ModListHandler

java.lang.Object
net.minecraftforge.fml.loading.moddiscovery.ModListHandler

public class ModListHandler extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
  • Constructor Details

    • ModListHandler

      public ModListHandler()
  • Method Details

    • processModLists

      public static List<String> processModLists(List<String> modListPaths, List<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 List<String> transformPathToList(String path)
    • fileExtension

      private static String fileExtension(Path path)
    • readListFile

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