Class JarInJarDependencyLocator
java.lang.Object
net.neoforged.fml.loading.moddiscovery.locators.JarInJarDependencyLocator
- All Implemented Interfaces:
IDependencyLocator
,IOrderedProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final record
-
Field Summary
FieldsFields inherited from interface net.neoforged.neoforgespi.locating.IOrderedProvider
DEFAULT_PRIORITY, HIGHEST_SYSTEM_PRIORITY, LOWEST_SYSTEM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ModLoadingIssue
buildExceptionData
(net.neoforged.jarjar.selection.JarSelector.ResolutionFailureInformation<IModFile> entry) protected ModLoadingException
exception
(Collection<net.neoforged.jarjar.selection.JarSelector.ResolutionFailureInformation<IModFile>> failedDependencies) private String
formatError
(JarInJarDependencyLocator.ModWithVersionRange modWithVersionRange) private String
getErrorTranslationKey
(net.neoforged.jarjar.selection.JarSelector.ResolutionFailureInformation<IModFile> entry) getModWithVersionRangeStream
(net.neoforged.jarjar.selection.JarSelector.SourceWithRequestedVersionRange<IModFile> file) protected String
identifyMod
(IModFile modFile) loadModFileFrom
(IModFile file, Path path, IDiscoveryPipeline pipeline) protected Optional
<InputStream> loadResourceFromModFile
(IModFile modFile, Path path) void
scanMods
(List<IModFile> loadedMods, IDiscoveryPipeline pipeline) Invoked to find all mod dependencies that this dependency locator can find.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.neoforged.neoforgespi.locating.IOrderedProvider
getPriority
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
JarInJarDependencyLocator
public JarInJarDependencyLocator()
-
-
Method Details
-
scanMods
Description copied from interface:IDependencyLocator
Invoked to find all mod dependencies that this dependency locator can find. It is not guaranteed that all these are loaded into the runtime, as such the result of this method should be seen as a list of candidates to load.- Specified by:
scanMods
in interfaceIDependencyLocator
-
loadModFileFrom
-
exception
protected ModLoadingException exception(Collection<net.neoforged.jarjar.selection.JarSelector.ResolutionFailureInformation<IModFile>> failedDependencies) -
buildExceptionData
private ModLoadingIssue buildExceptionData(net.neoforged.jarjar.selection.JarSelector.ResolutionFailureInformation<IModFile> entry) -
getErrorTranslationKey
-
getModWithVersionRangeStream
private Stream<JarInJarDependencyLocator.ModWithVersionRange> getModWithVersionRangeStream(net.neoforged.jarjar.selection.JarSelector.SourceWithRequestedVersionRange<IModFile> file) -
formatError
-
identifyMod
-
loadResourceFromModFile
-
toString
-