Class InDevFolderLocator
java.lang.Object
net.neoforged.fml.loading.moddiscovery.locators.InDevFolderLocator
- All Implemented Interfaces:
IModFileCandidateLocator,IOrderedProvider
This locator finds mods and services that are passed as exploded folders on the classpath and are grouped explicitly.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final Map<File, InDevFolderLocator.VirtualJarManifestEntry> Fields inherited from interface net.neoforged.neoforgespi.locating.IOrderedProvider
DEFAULT_PRIORITY, HIGHEST_SYSTEM_PRIORITY, LOWEST_SYSTEM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfindCandidates(ILaunchContext context, IDiscoveryPipeline pipeline) Discovers potential mods to be loaded by FML.intGets the priority in which this provider will be called.private voidtoString()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
virtualJarMemberIndex
-
-
Constructor Details
-
InDevFolderLocator
public InDevFolderLocator()
-
-
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.
-
loadFromSystemProperty
private void loadFromSystemProperty() -
getPriority
public int getPriority()Description copied from interface:IOrderedProviderGets the priority in which this provider will be called. A higher value means the provider will be called earlier.- Specified by:
getPriorityin interfaceIOrderedProvider
-
toString
-