Class JarInJarDependencyLocator

java.lang.Object
net.minecraftforge.fml.loading.moddiscovery.AbstractModProvider
net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator
All Implemented Interfaces:
net.minecraftforge.forgespi.locating.IDependencyLocator, net.minecraftforge.forgespi.locating.IModProvider

@Internal public class JarInJarDependencyLocator extends AbstractModProvider implements net.minecraftforge.forgespi.locating.IDependencyLocator
  • Field Details

  • Constructor Details

    • JarInJarDependencyLocator

      public JarInJarDependencyLocator()
  • Method Details

    • name

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

      public List<net.minecraftforge.forgespi.locating.IModFile> scanMods(Iterable<net.minecraftforge.forgespi.locating.IModFile> loadedMods)
      Specified by:
      scanMods in interface net.minecraftforge.forgespi.locating.IDependencyLocator
    • getDefaultJarModType

      protected String getDefaultJarModType()
      Overrides:
      getDefaultJarModType in class AbstractModProvider
    • loadModFileFrom

      protected Optional<net.minecraftforge.forgespi.locating.IModFile> loadModFileFrom(net.minecraftforge.forgespi.locating.IModFile file, Path path)
    • exception

      protected EarlyLoadingException exception(Collection<net.minecraftforge.jarjar.selection.JarSelector.ResolutionFailureInformation<net.minecraftforge.forgespi.locating.IModFile>> failedDependencies)
    • buildExceptionData

      @NotNull private EarlyLoadingException.ExceptionData buildExceptionData(net.minecraftforge.jarjar.selection.JarSelector.ResolutionFailureInformation<net.minecraftforge.forgespi.locating.IModFile> entry)
    • getErrorTranslationKey

      @NotNull private @NotNull String getErrorTranslationKey(net.minecraftforge.jarjar.selection.JarSelector.ResolutionFailureInformation<net.minecraftforge.forgespi.locating.IModFile> entry)
    • getModWithVersionRangeStream

      @NotNull private @NotNull Stream<JarInJarDependencyLocator.ModWithVersionRange> getModWithVersionRangeStream(net.minecraftforge.jarjar.selection.JarSelector.SourceWithRequestedVersionRange<net.minecraftforge.forgespi.locating.IModFile> file)
    • loadResourceFromModFile

      protected Optional<InputStream> loadResourceFromModFile(net.minecraftforge.forgespi.locating.IModFile modFile, Path path)
    • formatError

      @NotNull private @NotNull String formatError(JarInJarDependencyLocator.ModWithVersionRange modWithVersionRange)
    • identifyMod

      protected String identifyMod(net.minecraftforge.forgespi.locating.IModFile modFile)