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 LoadingModList
private static final org.slf4j.Logger
private final List
<ModFileInfo> private final List
<ModLoadingIssue> private final List
<IModFileInfo> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
addForScanning
(BackgroundScanHandler backgroundScanHandler) void
findAllURLsForResource
(String resName) findResource
(String className) static LoadingModList
get()
getDependencies
(IModInfo mod) Returns all direct loading dependencies of the given mod.getModFileById
(String modid) getMods()
boolean
static LoadingModList
of
(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.AFTER
constraint on the dependency, or because the dependency has aIModInfo.Ordering.BEFORE
constraint on the given mod. -
hasErrors
public boolean hasErrors() -
getModLoadingIssues
-