public class ModListHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
Constructor and Description |
---|
ModListHandler() |
Modifier and Type | Method and 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) |
public static java.util.List<java.lang.String> processModLists(java.util.List<java.lang.String> modListPaths, java.util.List<java.nio.file.Path> mavenRootPaths)
modListPaths
- Paths to search for mod file listsmavenRootPaths
- Roots to look for mods listedprivate static java.util.List<java.lang.String> transformPathToList(java.lang.String path)
private static java.util.List<java.lang.String> readListFile(java.nio.file.Path filePath)
filePath
- path