public class ExplodedDirectoryLocator
extends java.lang.Object
implements net.minecraftforge.forgespi.locating.IModLocator
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.util.Map<net.minecraftforge.forgespi.locating.IModFile,org.apache.commons.lang3.tuple.Pair<java.nio.file.Path,java.util.List<java.nio.file.Path>>> |
mods |
private java.util.List<org.apache.commons.lang3.tuple.Pair<java.nio.file.Path,java.util.List<java.nio.file.Path>>> |
rootDirs |
Constructor and Description |
---|
ExplodedDirectoryLocator() |
Modifier and Type | Method and Description |
---|---|
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) |
void |
initArguments(java.util.Map<java.lang.String,?> arguments) |
boolean |
isValid(net.minecraftforge.forgespi.locating.IModFile modFile) |
java.lang.String |
name() |
void |
scanFile(net.minecraftforge.forgespi.locating.IModFile modFile,
java.util.function.Consumer<java.nio.file.Path> pathConsumer) |
private void |
scanIndividualPath(java.nio.file.Path path,
java.util.function.Consumer<java.nio.file.Path> pathConsumer) |
java.util.List<net.minecraftforge.forgespi.locating.IModFile> |
scanMods() |
java.lang.String |
toString() |
private static final org.apache.logging.log4j.Logger LOGGER
private final java.util.List<org.apache.commons.lang3.tuple.Pair<java.nio.file.Path,java.util.List<java.nio.file.Path>>> rootDirs
private final java.util.Map<net.minecraftforge.forgespi.locating.IModFile,org.apache.commons.lang3.tuple.Pair<java.nio.file.Path,java.util.List<java.nio.file.Path>>> mods
public java.util.List<net.minecraftforge.forgespi.locating.IModFile> scanMods()
scanMods
in interface net.minecraftforge.forgespi.locating.IModLocator
public java.lang.String name()
name
in interface net.minecraftforge.forgespi.locating.IModLocator
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 modFile, java.util.function.Consumer<java.nio.file.Path> pathConsumer)
scanFile
in interface net.minecraftforge.forgespi.locating.IModLocator
private void scanIndividualPath(java.nio.file.Path path, java.util.function.Consumer<java.nio.file.Path> pathConsumer)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Optional<java.util.jar.Manifest> findManifest(java.nio.file.Path file)
findManifest
in interface net.minecraftforge.forgespi.locating.IModLocator
public void initArguments(java.util.Map<java.lang.String,?> arguments)
initArguments
in interface net.minecraftforge.forgespi.locating.IModLocator
public boolean isValid(net.minecraftforge.forgespi.locating.IModFile modFile)
isValid
in interface net.minecraftforge.forgespi.locating.IModLocator