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 LoadingModListprivate static final org.slf4j.Loggerprivate final List<ModFileInfo> private final List<ModLoadingIssue> private final List<IModFileInfo> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddForScanning(BackgroundScanHandler backgroundScanHandler) voidfindAllURLsForResource(String resName) findResource(String className) static LoadingModListget()getDependencies(IModInfo mod) Returns all direct loading dependencies of the given mod.getModFileById(String modid) getMods()booleanstatic LoadingModListof(List<ModFile> plugins, List<ModFile> modFiles, List<ModInfo> sortedList, List<ModLoadingIssue> issues, Map<ModInfo, List<ModInfo>> modDependencies)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
INSTANCE
-
plugins
-
modFiles
-
sortedList
-
modDependencies
-
fileById
-
modLoadingIssues
-
-
Constructor Details
-
LoadingModList
-
-
Method Details
-
of
-
get
-
addMixinConfigs
public void addMixinConfigs() -
addAccessTransformers
public void addAccessTransformers() -
addEnumExtenders
public void addEnumExtenders() -
addForScanning
-
getPlugins
-
getModFiles
-
findResource
-
findAllURLsForResource
-
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
-