Class ProductionProvider
java.lang.Object
net.neoforged.fml.loading.moddiscovery.locators.ProductionProvider
- All Implemented Interfaces:
IModFileCandidateLocator,IOrderedProvider
Locates the Minecraft and NeoForge jars in a production environment from the libraries folder.
-
Field Summary
FieldsFields inherited from interface net.neoforged.neoforgespi.locating.IOrderedProvider
DEFAULT_PRIORITY, HIGHEST_SYSTEM_PRIORITY, LOWEST_SYSTEM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionProductionProvider(MavenCoordinate minecraftArtifact, MavenCoordinate neoforgeArtifact) -
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.toString()
-
Field Details
-
minecraftArtifact
-
neoforgeArtifact
-
-
Constructor Details
-
ProductionProvider
-
-
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
-
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
-