private static class ModDiscoverer.MinecraftLocator
extends java.lang.Object
implements net.minecraftforge.forgespi.locating.IModLocator
Modifier and Type | Field and Description |
---|---|
private java.nio.file.FileSystem |
fileSystem |
private java.nio.file.Path |
mcJar |
Constructor and Description |
---|
MinecraftLocator() |
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) |
private java.nio.file.Path |
findPathDirectory(net.minecraftforge.forgespi.locating.IModFile modFile,
java.lang.String... path) |
private java.nio.file.Path |
findPathJar(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) |
java.util.List<net.minecraftforge.forgespi.locating.IModFile> |
scanMods() |
private final java.nio.file.Path mcJar
private final java.nio.file.FileSystem fileSystem
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
private java.nio.file.Path findPathDirectory(net.minecraftforge.forgespi.locating.IModFile modFile, java.lang.String... path)
private java.nio.file.Path findPathJar(net.minecraftforge.forgespi.locating.IModFile modFile, java.lang.String... path)
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
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