Class AbstractJarFileLocator

java.lang.Object
net.minecraftforge.fml.loading.moddiscovery.AbstractJarFileLocator
All Implemented Interfaces:
net.minecraftforge.forgespi.locating.IModLocator
Direct Known Subclasses:
ClasspathLocator, MavenDirectoryLocator, ModsFolderLocator

public abstract class AbstractJarFileLocator extends Object implements net.minecraftforge.forgespi.locating.IModLocator
  • Field Details

  • Constructor Details

    • AbstractJarFileLocator

      public AbstractJarFileLocator()
  • Method Details

    • scanFile

      public void scanFile(net.minecraftforge.forgespi.locating.IModFile file, Consumer<Path> pathConsumer)
      Specified by:
      scanFile in interface net.minecraftforge.forgespi.locating.IModLocator
    • scanMods

      public List<net.minecraftforge.forgespi.locating.IModFile> scanMods()
      Specified by:
      scanMods in interface net.minecraftforge.forgespi.locating.IModLocator
    • scanCandidates

      public abstract Stream<Path> scanCandidates()
    • isValid

      public boolean isValid(net.minecraftforge.forgespi.locating.IModFile modFile)
      Specified by:
      isValid in interface net.minecraftforge.forgespi.locating.IModLocator
    • createMod

      private Optional<net.minecraftforge.forgespi.locating.IModFile> createMod(Path path)
    • manifestParser

      private net.minecraftforge.forgespi.language.IModFileInfo manifestParser(net.minecraftforge.forgespi.locating.IModFile mod)