Class ModListHandler
- java.lang.Object
-
- net.minecraftforge.fml.loading.moddiscovery.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 lineprivate static java.util.List<java.lang.String>
transformPathToList(java.lang.String path)
-
-
-
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 listsmavenRootPaths
- 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
-
-