Package net.neoforged.fml.loading
Class LoadingModList
java.lang.Object
net.neoforged.fml.loading.LoadingModList
Master list of all mods in the loading context. This class cannot refer outside the
loading package
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, ModFileInfo> private static final org.slf4j.Loggerprivate final List<ModFileInfo> private final List<ModLoadingIssue> private final List<IModFileInfo> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LoadingModListget()Deprecated, for removal: This API element is subject to removal in a future version.getDependencies(IModInfo mod) Returns all direct loading dependencies of the given mod.getModFileById(String modid) getMods()booleanstatic LoadingModListof(List<ModFile> plugins, List<ModFile> gameLibraries, List<ModFile> modFiles, List<ModInfo> sortedList, List<ModLoadingIssue> issues, Map<ModInfo, List<ModInfo>> modDependencies)
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
plugins
-
gameLibraries
-
modFiles
-
sortedList
-
modDependencies
-
fileById
-
fileByPackage
-
modLoadingIssues
-
allModFiles
-
-
Constructor Details
-
LoadingModList
-
-
Method Details
-
of
-
get
Deprecated, for removal: This API element is subject to removal in a future version.UseFMLLoader.getCurrent().getLoadingModList()instead. -
contains
-
getPlugins
-
getGameLibraries
-
getModFiles
-
getAllModFiles
- Returns:
- All mod files, plugins and game libraries.
-
getModFileById
-
getMods
-
getDependencies
Returns all direct loading dependencies of the given mod.This means: all the mods that are directly specified to be loaded before the given mod, either because the given mod has an
IModInfo.Ordering.AFTERconstraint on the dependency, or because the dependency has aIModInfo.Ordering.BEFOREconstraint on the given mod. -
hasErrors
public boolean hasErrors() -
getModLoadingIssues
-
getPackageIndex
-
buildPackageIndex
-
FMLLoader.getCurrent().getLoadingModList()instead.