Class ModSorter


  • public class ModSorter
    extends java.lang.Object
    • 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

        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)
      • modVersionNotContained

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