Package net.minecraftforge.fml.loading
Class LoadingModList
- java.lang.Object
-
- net.minecraftforge.fml.loading.LoadingModList
-
public class LoadingModList extends java.lang.Object
Master list of all mods in the loading context. This class cannot refer outside the loading package
-
-
Field Summary
Fields Modifier and Type Field 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
-
Constructor Summary
Constructors Modifier Constructor Description private
LoadingModList(java.util.List<ModFile> modFiles, java.util.List<ModInfo> sortedList)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAccessTransformers()
void
addCoreMods()
void
addForScanning(BackgroundScanHandler backgroundScanHandler)
java.util.Enumeration<java.net.URL>
findAllURLsForResource(java.lang.String resName)
java.nio.file.Path
findResource(java.lang.String className)
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)
-
-
-
Field Detail
-
INSTANCE
private static LoadingModList INSTANCE
-
modFiles
private final java.util.List<ModFileInfo> modFiles
-
sortedList
private final java.util.List<ModInfo> sortedList
-
fileById
private final java.util.Map<java.lang.String,ModFileInfo> fileById
-
scanner
private BackgroundScanHandler scanner
-
preLoadErrors
private final java.util.List<EarlyLoadingException> preLoadErrors
-
brokenFiles
private java.util.List<ModFile> brokenFiles
-
-
Method Detail
-
of
public static LoadingModList of(java.util.List<ModFile> modFiles, java.util.List<ModInfo> sortedList, EarlyLoadingException earlyLoadingException)
-
get
public static LoadingModList get()
-
addCoreMods
public void addCoreMods()
-
addAccessTransformers
public void addAccessTransformers()
-
addForScanning
public void addForScanning(BackgroundScanHandler backgroundScanHandler)
-
getModFiles
public java.util.List<ModFileInfo> getModFiles()
-
findResource
public java.nio.file.Path findResource(java.lang.String className)
-
findAllURLsForResource
public java.util.Enumeration<java.net.URL> findAllURLsForResource(java.lang.String resName)
-
getModFileById
public ModFileInfo getModFileById(java.lang.String modid)
-
getMods
public java.util.List<ModInfo> getMods()
-
getErrors
public java.util.List<EarlyLoadingException> getErrors()
-
setBrokenFiles
public void setBrokenFiles(java.util.List<ModFile> brokenFiles)
-
getBrokenFiles
public java.util.List<ModFile> getBrokenFiles()
-
-