Class ExplodedDirectoryLocator

java.lang.Object
net.minecraftforge.fml.loading.moddiscovery.ExplodedDirectoryLocator
All Implemented Interfaces:
net.minecraftforge.forgespi.locating.IModLocator

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

    • LOGGER

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

      private final List<org.apache.commons.lang3.tuple.Pair<Path,List<Path>>> rootDirs
    • mods

      private final Map<net.minecraftforge.forgespi.locating.IModFile,org.apache.commons.lang3.tuple.Pair<Path,List<Path>>> mods
  • Constructor Details

    • ExplodedDirectoryLocator

      public ExplodedDirectoryLocator()
  • 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
    • scanFile

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

      private void scanIndividualPath(Path path, Consumer<Path> pathConsumer)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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