Class ModSorter

java.lang.Object
net.minecraftforge.fml.loading.ModSorter

public class ModSorter extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • uniqueModListBuilder

      private final UniqueModListBuilder uniqueModListBuilder
    • modFiles

      private List<ModFile> modFiles
    • sortedList

      private List<ModInfo> sortedList
    • modIdNameLookup

      private Map<String,net.minecraftforge.forgespi.language.IModInfo> modIdNameLookup
    • systemMods

      private List<ModFile> systemMods
  • Constructor Details

    • ModSorter

      private ModSorter(List<ModFile> modFiles)
  • Method Details

    • sort

      public static LoadingModList sort(List<ModFile> mods, List<EarlyLoadingException.ExceptionData> errors)
    • 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()
    • detectSystemMods

      private void detectSystemMods(Map<String,List<ModFile>> modFilesByFirstId)
    • verifyDependencyVersions

      private List<EarlyLoadingException.ExceptionData> verifyDependencyVersions()
    • formatDependencyError

      private static String formatDependencyError(net.minecraftforge.forgespi.language.IModInfo.ModVersion dependency, Map<String,org.apache.maven.artifact.versioning.ArtifactVersion> modVersions)
    • modVersionNotContained

      private boolean modVersionNotContained(net.minecraftforge.forgespi.language.IModInfo.ModVersion mv, Map<String,org.apache.maven.artifact.versioning.ArtifactVersion> modVersions)