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

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • modJars

      protected final Map<net.minecraftforge.forgespi.locating.IModFile,FileSystem> modJars
    • ENSURE_INIT

      static final Method ENSURE_INIT
  • Constructor Details

    • AbstractJarFileLocator

      public AbstractJarFileLocator()
  • Method Details

    • createFileSystem

      protected FileSystem createFileSystem(net.minecraftforge.forgespi.locating.IModFile modFile)
    • findPath

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

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

      public Optional<Manifest> findManifest(Path file)
      Specified by:
      findManifest 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
    • isValid

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