public abstract class AbstractJarFileLocator
extends java.lang.Object
implements net.minecraftforge.forgespi.locating.IModLocator
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
protected java.util.Map<net.minecraftforge.forgespi.locating.IModFile,java.nio.file.FileSystem> |
modJars |
Constructor and Description |
---|
AbstractJarFileLocator() |
Modifier and Type | Method and Description |
---|---|
protected java.nio.file.FileSystem |
createFileSystem(net.minecraftforge.forgespi.locating.IModFile modFile) |
java.util.Optional<java.util.jar.Manifest> |
findManifest(java.nio.file.Path file) |
java.nio.file.Path |
findPath(net.minecraftforge.forgespi.locating.IModFile modFile,
java.lang.String... path) |
boolean |
isValid(net.minecraftforge.forgespi.locating.IModFile modFile) |
void |
scanFile(net.minecraftforge.forgespi.locating.IModFile file,
java.util.function.Consumer<java.nio.file.Path> pathConsumer) |
private static final org.apache.logging.log4j.Logger LOGGER
protected final java.util.Map<net.minecraftforge.forgespi.locating.IModFile,java.nio.file.FileSystem> modJars
protected java.nio.file.FileSystem createFileSystem(net.minecraftforge.forgespi.locating.IModFile modFile)
public java.nio.file.Path findPath(net.minecraftforge.forgespi.locating.IModFile modFile, java.lang.String... path)
findPath
in interface net.minecraftforge.forgespi.locating.IModLocator
public void scanFile(net.minecraftforge.forgespi.locating.IModFile file, java.util.function.Consumer<java.nio.file.Path> pathConsumer)
scanFile
in interface net.minecraftforge.forgespi.locating.IModLocator
public java.util.Optional<java.util.jar.Manifest> findManifest(java.nio.file.Path file)
findManifest
in interface net.minecraftforge.forgespi.locating.IModLocator
public boolean isValid(net.minecraftforge.forgespi.locating.IModFile modFile)
isValid
in interface net.minecraftforge.forgespi.locating.IModLocator