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 Stringprivate static final org.slf4j.Loggerprivate final Pathprivate static final StringFields 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 TypeMethodDescriptionvoidfindCandidates(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, waitMethods 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:IModFileCandidateLocatorDiscovers potential mods to be loaded by FML.- Specified by:
findCandidatesin interfaceIModFileCandidateLocator- Parameters:
pipeline- Adds discovered mods and issues to this pipeline.
-
toString
-