Package net.minecraftforge.fml.loading
Class ModSorter
- java.lang.Object
-
- net.minecraftforge.fml.loading.ModSorter
-
public class ModSorter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ModFile>
forgeAndMC
private static org.apache.logging.log4j.Logger
LOGGER
private java.util.List<ModFile>
modFiles
private java.util.Map<java.lang.String,ModInfo>
modIdNameLookup
private java.util.List<ModInfo>
sortedList
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addDependency(com.google.common.graph.MutableGraph<ModFileInfo> topoGraph, net.minecraftforge.forgespi.language.IModInfo.ModVersion dep)
private void
buildUniqueList()
private java.util.List<EarlyLoadingException.ExceptionData>
findLanguages()
private boolean
modVersionNotContained(net.minecraftforge.forgespi.language.IModInfo.ModVersion mv, java.util.Map<java.lang.String,org.apache.maven.artifact.versioning.ArtifactVersion> modVersions)
private java.util.Map.Entry<java.lang.String,net.minecraftforge.forgespi.locating.IModFile>
selectNewestModInfo(java.util.Map.Entry<java.lang.String,java.util.List<net.minecraftforge.forgespi.locating.IModFile>> fullList)
private void
sort()
static LoadingModList
sort(java.util.List<ModFile> mods)
private java.util.List<EarlyLoadingException.ExceptionData>
verifyDependencyVersions()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
modFiles
private java.util.List<ModFile> modFiles
-
sortedList
private java.util.List<ModInfo> sortedList
-
modIdNameLookup
private java.util.Map<java.lang.String,ModInfo> modIdNameLookup
-
forgeAndMC
private java.util.List<ModFile> forgeAndMC
-
-
Constructor Detail
-
ModSorter
private ModSorter(java.util.List<ModFile> modFiles)
-
-
Method Detail
-
sort
public static LoadingModList sort(java.util.List<ModFile> mods)
-
findLanguages
private java.util.List<EarlyLoadingException.ExceptionData> findLanguages()
-
sort
private void sort()
-
addDependency
private void addDependency(com.google.common.graph.MutableGraph<ModFileInfo> topoGraph, net.minecraftforge.forgespi.language.IModInfo.ModVersion dep)
-
buildUniqueList
private void buildUniqueList()
-
selectNewestModInfo
private java.util.Map.Entry<java.lang.String,net.minecraftforge.forgespi.locating.IModFile> selectNewestModInfo(java.util.Map.Entry<java.lang.String,java.util.List<net.minecraftforge.forgespi.locating.IModFile>> fullList)
-
verifyDependencyVersions
private java.util.List<EarlyLoadingException.ExceptionData> verifyDependencyVersions()
-
modVersionNotContained
private boolean modVersionNotContained(net.minecraftforge.forgespi.language.IModInfo.ModVersion mv, java.util.Map<java.lang.String,org.apache.maven.artifact.versioning.ArtifactVersion> modVersions)
-
-