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 void
addRequiredLibrary
(MavenCoordinate coordinate, List<Path> content) void
findCandidates
(ILaunchContext context, IDiscoveryPipeline pipeline) Discovers potential mods to be loaded by FML.int
Gets the priority in which this provider will be called.toString()
-
Field Details
-
additionalContent
-
-
Constructor Details
-
ProductionClientProvider
-
-
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.
-
addRequiredLibrary
-
toString
-
getPriority
public int getPriority()Description copied from interface:IOrderedProvider
Gets the priority in which this provider will be called. A higher value means the provider will be called earlier.- Specified by:
getPriority
in interfaceIOrderedProvider
-