Class ModDiscoverer.MinecraftLocator

java.lang.Object
net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.MinecraftLocator
All Implemented Interfaces:
net.minecraftforge.forgespi.locating.IModLocator
Enclosing class:
ModDiscoverer

private static class ModDiscoverer.MinecraftLocator extends Object implements net.minecraftforge.forgespi.locating.IModLocator
  • Field Details

    • mcJar

      private final Path mcJar
    • fileSystem

      private final FileSystem fileSystem
  • Constructor Details

    • MinecraftLocator

      MinecraftLocator()
  • Method Details

    • scanMods

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

      public String name()
      Specified by:
      name in interface net.minecraftforge.forgespi.locating.IModLocator
    • findPath

      public Path findPath(net.minecraftforge.forgespi.locating.IModFile modFile, String... path)
      Specified by:
      findPath in interface net.minecraftforge.forgespi.locating.IModLocator
    • findPathDirectory

      private Path findPathDirectory(net.minecraftforge.forgespi.locating.IModFile modFile, String... path)
    • findPathJar

      private Path findPathJar(net.minecraftforge.forgespi.locating.IModFile modFile, String... path)
    • scanFile

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

      public org.apache.commons.lang3.tuple.Pair<Optional<Manifest>,Optional<CodeSigner[]>> findManifestAndSigners(Path file)
      Specified by:
      findManifestAndSigners in interface net.minecraftforge.forgespi.locating.IModLocator
    • findManifest

      public Optional<Manifest> findManifest(Path file)
      Specified by:
      findManifest in interface net.minecraftforge.forgespi.locating.IModLocator
    • initArguments

      public void initArguments(Map<String,?> arguments)
      Specified by:
      initArguments in interface net.minecraftforge.forgespi.locating.IModLocator
    • isValid

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