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
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprivate static final record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate static final org.slf4j.Loggerprivate static final Stringprivate static final Stringprivate static final StringFields inherited from class net.minecraftforge.fml.loading.moddiscovery.AbstractModProviderMODS_TOML
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuildExceptionData(net.minecraftforge.jarjar.selection.JarSelector.ResolutionFailureInformation<net.minecraftforge.forgespi.locating.IModFile> entry) protected EarlyLoadingExceptionexception(Collection<net.minecraftforge.jarjar.selection.JarSelector.ResolutionFailureInformation<net.minecraftforge.forgespi.locating.IModFile>> failedDependencies) private @NotNull StringformatError(JarInJarDependencyLocator.ModWithVersionRange modWithVersionRange) protected Stringprivate @NotNull StringgetErrorTranslationKey(net.minecraftforge.jarjar.selection.JarSelector.ResolutionFailureInformation<net.minecraftforge.forgespi.locating.IModFile> entry) private @NotNull Stream<JarInJarDependencyLocator.ModWithVersionRange> getModWithVersionRangeStream(net.minecraftforge.jarjar.selection.JarSelector.SourceWithRequestedVersionRange<net.minecraftforge.forgespi.locating.IModFile> file) protected StringidentifyMod(net.minecraftforge.forgespi.locating.IModFile modFile) protected Optional<net.minecraftforge.forgespi.locating.IModFile> loadModFileFrom(net.minecraftforge.forgespi.locating.IModFile file, Path path) protected Optional<InputStream> loadResourceFromModFile(net.minecraftforge.forgespi.locating.IModFile modFile, Path path) name()List<net.minecraftforge.forgespi.locating.IModFile> Methods inherited from class net.minecraftforge.fml.loading.moddiscovery.AbstractModProvidercreateMod, createMod, initArguments, isValid, manifestParser, scanFileMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.forgespi.locating.IModProviderinitArguments, isValid, scanFile
- 
Field Details- 
COLOR_CODE- See Also:
 
- 
RESET- See Also:
 
- 
YELLOW- See Also:
 
- 
RED- See Also:
 
- 
GREEN- See Also:
 
- 
LOGGERprivate static final org.slf4j.Logger LOGGER
 
- 
- 
Constructor Details- 
JarInJarDependencyLocatorpublic JarInJarDependencyLocator()
 
- 
- 
Method Details- 
name- Specified by:
- namein interface- net.minecraftforge.forgespi.locating.IModProvider
 
- 
scanModspublic List<net.minecraftforge.forgespi.locating.IModFile> scanMods(Iterable<net.minecraftforge.forgespi.locating.IModFile> loadedMods) - Specified by:
- scanModsin interface- net.minecraftforge.forgespi.locating.IDependencyLocator
 
- 
getDefaultJarModType- Overrides:
- getDefaultJarModTypein class- AbstractModProvider
 
- 
loadModFileFrom
- 
exceptionprotected 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) 
- 
loadResourceFromModFileprotected Optional<InputStream> loadResourceFromModFile(net.minecraftforge.forgespi.locating.IModFile modFile, Path path) 
- 
formatError@NotNull private @NotNull String formatError(JarInJarDependencyLocator.ModWithVersionRange modWithVersionRange) 
- 
identifyMod
 
-