public class LoadingModList
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<ModFile> |
brokenFiles |
private java.util.Map<java.lang.String,ModFileInfo> |
fileById |
private static LoadingModList |
INSTANCE |
private java.util.List<ModFileInfo> |
modFiles |
private java.util.List<EarlyLoadingException> |
preLoadErrors |
private BackgroundScanHandler |
scanner |
private java.util.List<ModInfo> |
sortedList |
Modifier | Constructor and Description |
---|---|
private |
LoadingModList(java.util.List<ModFile> modFiles,
java.util.List<ModInfo> sortedList) |
Modifier and Type | Method and Description |
---|---|
void |
addAccessTransformers() |
void |
addCoreMods() |
void |
addForScanning(BackgroundScanHandler backgroundScanHandler) |
java.nio.file.Path |
findResource(java.lang.String className) |
java.net.URL |
findURLForResource(java.lang.String resourceName) |
static LoadingModList |
get() |
java.util.List<ModFile> |
getBrokenFiles() |
java.util.List<EarlyLoadingException> |
getErrors() |
ModFileInfo |
getModFileById(java.lang.String modid) |
java.util.List<ModFileInfo> |
getModFiles() |
java.util.List<ModInfo> |
getMods() |
static LoadingModList |
of(java.util.List<ModFile> modFiles,
java.util.List<ModInfo> sortedList,
EarlyLoadingException earlyLoadingException) |
void |
setBrokenFiles(java.util.List<ModFile> brokenFiles) |
private static LoadingModList INSTANCE
private final java.util.List<ModFileInfo> modFiles
private final java.util.List<ModInfo> sortedList
private final java.util.Map<java.lang.String,ModFileInfo> fileById
private BackgroundScanHandler scanner
private final java.util.List<EarlyLoadingException> preLoadErrors
private java.util.List<ModFile> brokenFiles
public static LoadingModList of(java.util.List<ModFile> modFiles, java.util.List<ModInfo> sortedList, EarlyLoadingException earlyLoadingException)
public static LoadingModList get()
public void addCoreMods()
public void addAccessTransformers()
public void addForScanning(BackgroundScanHandler backgroundScanHandler)
public java.util.List<ModFileInfo> getModFiles()
public java.nio.file.Path findResource(java.lang.String className)
public java.net.URL findURLForResource(java.lang.String resourceName)
public ModFileInfo getModFileById(java.lang.String modid)
public java.util.List<ModInfo> getMods()
public java.util.List<EarlyLoadingException> getErrors()
public void setBrokenFiles(java.util.List<ModFile> brokenFiles)
public java.util.List<ModFile> getBrokenFiles()