Class ProductionClientProvider
java.lang.Object
net.neoforged.fml.loading.moddiscovery.locators.ProductionClientProvider
- All Implemented Interfaces:
IModFileCandidateLocator,IOrderedProvider
Locates the Minecraft client files in a production environment.
It assumes that the installer produced two artifacts, one containing the Minecraft classes ("srg") which have been renamed to Mojangs official names using their mappings, and another containing only the Minecraft resource files ("extra"), and searches for these artifacts in the library directory.
-
Field Summary
FieldsFields inherited from interface net.neoforged.neoforgespi.locating.IOrderedProvider
DEFAULT_PRIORITY, HIGHEST_SYSTEM_PRIORITY, LOWEST_SYSTEM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddRequiredLibrary(MavenCoordinate coordinate, List<Path> content) voidfindCandidates(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
-
additionalContent
-
-
Constructor Details
-
ProductionClientProvider
-
-
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.
-
addRequiredLibrary
-
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
-