public class ModSorter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 |
Modifier | Constructor and Description |
---|---|
private |
ModSorter(java.util.List<ModFile> modFiles) |
Modifier and Type | Method and Description |
---|---|
private void |
addDependency(com.google.common.graph.MutableGraph<ModFileInfo> topoGraph,
net.minecraftforge.forgespi.language.IModInfo.ModVersion dep) |
private void |
buildUniqueList() |
private void |
findLanguages() |
private boolean |
modVersionMatches(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 void |
verifyDependencyVersions() |
private static final org.apache.logging.log4j.Logger LOGGER
private java.util.List<ModFile> modFiles
private java.util.List<ModInfo> sortedList
private java.util.Map<java.lang.String,ModInfo> modIdNameLookup
private ModSorter(java.util.List<ModFile> modFiles)
public static LoadingModList sort(java.util.List<ModFile> mods)
private void findLanguages()
private void sort()
private void addDependency(com.google.common.graph.MutableGraph<ModFileInfo> topoGraph, net.minecraftforge.forgespi.language.IModInfo.ModVersion dep)
private void buildUniqueList()
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 verifyDependencyVersions()
private boolean modVersionMatches(net.minecraftforge.forgespi.language.IModInfo.ModVersion mv, java.util.Map<java.lang.String,org.apache.maven.artifact.versioning.ArtifactVersion> modVersions)