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.Logger
private static final Attributes.Name
private static final Attributes.Name
Fields inherited from interface net.neoforged.neoforgespi.locating.IOrderedProvider
DEFAULT_PRIORITY, HIGHEST_SYSTEM_PRIORITY, LOWEST_SYSTEM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
findCandidates
(ILaunchContext context, IDiscoveryPipeline pipeline) Discovers potential mods to be loaded by FML.private static String[]
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 tellingNeoForgeDevDistCleaner
to clean class files that should be masked.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:IModFileCandidateLocator
Discovers potential mods to be loaded by FML.- Specified by:
findCandidates
in 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 tellingNeoForgeDevDistCleaner
to clean class files that should be masked. -
getNeoForgeSpecificPathPrefixes
-
toString
-