Class ModDiscoverer.MinecraftLocator
java.lang.Object
net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.MinecraftLocator
- All Implemented Interfaces:
net.minecraftforge.forgespi.locating.IModLocator
- Enclosing class:
- ModDiscoverer
private static class ModDiscoverer.MinecraftLocator
extends Object
implements net.minecraftforge.forgespi.locating.IModLocator
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindManifest
(Path file) org.apache.commons.lang3.tuple.Pair<Optional<Manifest>,
Optional<CodeSigner[]>> findManifestAndSigners
(Path file) private Path
findPathDirectory
(net.minecraftforge.forgespi.locating.IModFile modFile, String... path) private Path
findPathJar
(net.minecraftforge.forgespi.locating.IModFile modFile, String... path) void
initArguments
(Map<String, ?> arguments) boolean
isValid
(net.minecraftforge.forgespi.locating.IModFile modFile) name()
void
List<net.minecraftforge.forgespi.locating.IModFile>
scanMods()
-
Field Details
-
mcJar
-
fileSystem
-
-
Constructor Details
-
MinecraftLocator
MinecraftLocator()
-
-
Method Details
-
scanMods
- Specified by:
scanMods
in interfacenet.minecraftforge.forgespi.locating.IModLocator
-
name
- Specified by:
name
in interfacenet.minecraftforge.forgespi.locating.IModLocator
-
findPath
- Specified by:
findPath
in interfacenet.minecraftforge.forgespi.locating.IModLocator
-
findPathDirectory
-
findPathJar
-
scanFile
public void scanFile(net.minecraftforge.forgespi.locating.IModFile modFile, Consumer<Path> pathConsumer) - Specified by:
scanFile
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
-
findManifest
- Specified by:
findManifest
in interfacenet.minecraftforge.forgespi.locating.IModLocator
-
initArguments
- Specified by:
initArguments
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
-