Class ModsFolderLocator
java.lang.Object
net.neoforged.fml.loading.moddiscovery.locators.ModsFolderLocator
- All Implemented Interfaces:
IModFileCandidateLocator
,IOrderedProvider
Support loading mods located in JAR files in the mods folder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private static final org.slf4j.Logger
private final Path
private static final String
Fields inherited from interface net.neoforged.neoforgespi.locating.IOrderedProvider
DEFAULT_PRIORITY, HIGHEST_SYSTEM_PRIORITY, LOWEST_SYSTEM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionModsFolderLocator
(Path modFolder) ModsFolderLocator
(Path modFolder, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
findCandidates
(ILaunchContext context, IDiscoveryPipeline pipeline) Discovers potential mods to be loaded by FML.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.neoforged.neoforgespi.locating.IOrderedProvider
getPriority
-
Field Details
-
SUFFIX
- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
modFolder
-
customName
-
-
Constructor Details
-
ModsFolderLocator
public ModsFolderLocator() -
ModsFolderLocator
ModsFolderLocator(Path modFolder) -
ModsFolderLocator
-
-
Method Details
-
findCandidates
Description copied from interface:IModFileCandidateLocator
Discovers potential mods to be loaded by FML.- Specified by:
findCandidates
in interfaceIModFileCandidateLocator
- Parameters:
pipeline
- Adds discovered mods and issues to this pipeline.
-
toString
-