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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Optional<net.minecraftforge.forgespi.locating.IModFile>
boolean
isValid(net.minecraftforge.forgespi.locating.IModFile modFile)
private net.minecraftforge.forgespi.language.IModFileInfo
manifestParser(net.minecraftforge.forgespi.locating.IModFile mod)
void
List<net.minecraftforge.forgespi.locating.IModFile>
scanMods()
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
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
MODS_TOML
- See Also:
- Constant Field Values
-
MANIFEST
- See Also:
- Constant Field Values
-
-
Constructor Details
-
AbstractJarFileLocator
public AbstractJarFileLocator()
-
-
Method Details
-
scanFile
public void scanFile(net.minecraftforge.forgespi.locating.IModFile file, Consumer<Path> pathConsumer)- Specified by:
scanFile
in interfacenet.minecraftforge.forgespi.locating.IModLocator
-
scanMods
- Specified by:
scanMods
in interfacenet.minecraftforge.forgespi.locating.IModLocator
-
scanCandidates
-
isValid
public boolean isValid(net.minecraftforge.forgespi.locating.IModFile modFile)- Specified by:
isValid
in interfacenet.minecraftforge.forgespi.locating.IModLocator
-
createMod
-
manifestParser
private net.minecraftforge.forgespi.language.IModFileInfo manifestParser(net.minecraftforge.forgespi.locating.IModFile mod)
-