Class ModListHandler
java.lang.Object
net.minecraftforge.fml.loading.moddiscovery.ModListHandler
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprocessModLists(List<String> modListPaths, List<Path> mavenRootPaths)
Reads the modList paths specified, and searches each maven root for mods matching.readListFile(Path filePath)
Simple list file, ending in ".list" with one mod coordinate per linetransformPathToList(String path)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
-
Constructor Details
-
ModListHandler
public ModListHandler()
-
-
Method Details
-
processModLists
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
-
readListFile
Simple list file, ending in ".list" with one mod coordinate per line- Parameters:
filePath
- path- Returns:
- list
-