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 Summary
Modifier and TypeFieldDescription(package private) static final Method
private static final org.apache.logging.log4j.Logger
protected final Map<net.minecraftforge.forgespi.locating.IModFile,
FileSystem> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected FileSystem
createFileSystem
(net.minecraftforge.forgespi.locating.IModFile modFile) findManifest
(Path file) org.apache.commons.lang3.tuple.Pair<Optional<Manifest>,
Optional<CodeSigner[]>> findManifestAndSigners
(Path file) boolean
isValid
(net.minecraftforge.forgespi.locating.IModFile modFile) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.forgespi.locating.IModLocator
initArguments, name, scanMods
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
modJars
-
ENSURE_INIT
-
-
Constructor Details
-
AbstractJarFileLocator
public AbstractJarFileLocator()
-
-
Method Details
-
createFileSystem
-
findPath
- Specified by:
findPath
in interfacenet.minecraftforge.forgespi.locating.IModLocator
-
scanFile
public void scanFile(net.minecraftforge.forgespi.locating.IModFile file, Consumer<Path> pathConsumer) - Specified by:
scanFile
in interfacenet.minecraftforge.forgespi.locating.IModLocator
-
findManifest
- Specified by:
findManifest
in interfacenet.minecraftforge.forgespi.locating.IModLocator
-
findManifestAndSigners
public org.apache.commons.lang3.tuple.Pair<Optional<Manifest>,Optional<CodeSigner[]>> findManifestAndSigners(Path file) - Specified by:
findManifestAndSigners
in interfacenet.minecraftforge.forgespi.locating.IModLocator
-
isValid
public boolean isValid(net.minecraftforge.forgespi.locating.IModFile modFile) - Specified by:
isValid
in interfacenet.minecraftforge.forgespi.locating.IModLocator
-