Class ModsFolderLocator
- java.lang.Object
-
- net.minecraftforge.fml.loading.moddiscovery.AbstractJarFileLocator
-
- net.minecraftforge.fml.loading.moddiscovery.ModsFolderLocator
-
- All Implemented Interfaces:
net.minecraftforge.forgespi.locating.IModLocator
public class ModsFolderLocator extends AbstractJarFileLocator
Support loading mods located in JAR files in the mods folder
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
customName
private static org.apache.logging.log4j.Logger
LOGGER
private java.nio.file.Path
modFolder
private static java.lang.String
SUFFIX
-
Fields inherited from class net.minecraftforge.fml.loading.moddiscovery.AbstractJarFileLocator
ENSURE_INIT, modJars
-
-
Constructor Summary
Constructors Constructor Description ModsFolderLocator()
ModsFolderLocator(java.nio.file.Path modFolder)
ModsFolderLocator(java.nio.file.Path modFolder, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initArguments(java.util.Map<java.lang.String,?> arguments)
java.lang.String
name()
java.util.List<net.minecraftforge.forgespi.locating.IModFile>
scanMods()
java.lang.String
toString()
-
Methods inherited from class net.minecraftforge.fml.loading.moddiscovery.AbstractJarFileLocator
createFileSystem, findManifest, findManifestAndSigners, findPath, isValid, scanFile
-
-
-
-
Field Detail
-
SUFFIX
private static final java.lang.String SUFFIX
- See Also:
- Constant Field Values
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
modFolder
private final java.nio.file.Path modFolder
-
customName
private final java.lang.String customName
-
-
Method Detail
-
scanMods
public java.util.List<net.minecraftforge.forgespi.locating.IModFile> scanMods()
-
name
public java.lang.String name()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
initArguments
public void initArguments(java.util.Map<java.lang.String,?> arguments)
-
-