Class NeoForgeDevProvider
java.lang.Object
net.neoforged.fml.loading.moddiscovery.locators.NeoForgeDevProvider
- All Implemented Interfaces:
IModFileCandidateLocator,IOrderedProvider
Provides the Minecraft and NeoForge mods in a NeoForge dev environment or a mod dev environment.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final Attributes.Nameprivate static final Attributes.NameFields 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.private static String[]private voidloadMaskedFiles(cpw.mods.jarhandling.JarContents minecraftJar, Set<String> maskedPaths, NeoForgeDevDistCleaner neoForgeDevDistCleaner, IDiscoveryPipeline pipeline) Loads file masking information from the jar's manifest, masking resource files that should not be present and tellingNeoForgeDevDistCleanerto clean class files that should be masked.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
-
LOG
private static final org.slf4j.Logger LOG -
NAME_DISTS
-
NAME_DIST
-
paths
-
-
Constructor Details
-
NeoForgeDevProvider
-
-
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.
-
loadMaskedFiles
private void loadMaskedFiles(cpw.mods.jarhandling.JarContents minecraftJar, Set<String> maskedPaths, NeoForgeDevDistCleaner neoForgeDevDistCleaner, IDiscoveryPipeline pipeline) Loads file masking information from the jar's manifest, masking resource files that should not be present and tellingNeoForgeDevDistCleanerto clean class files that should be masked. -
getNeoForgeSpecificPathPrefixes
-
toString
-