Package net.neoforged.fml.loading
Class ClasspathTransformerDiscoverer
java.lang.Object
net.neoforged.fml.loading.ClasspathTransformerDiscoverer
- All Implemented Interfaces:
ITransformerDiscoveryService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncandidates
(Path gameDirectory) Return a list of additional paths to be added to transformer service discovery during loading.candidates
(Path gameDirectory, String launchTarget) Return a list of additional paths to be added to transformer service discovery during loading.private void
locateTransformers
(String resource, Collection<NamedPath> result) scan()
private void
scanModClasses
(Collection<NamedPath> result) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cpw.mods.modlauncher.serviceapi.ITransformerDiscoveryService
earlyInitialization
-
Field Details
-
legacyClasspath
-
-
Constructor Details
-
ClasspathTransformerDiscoverer
public ClasspathTransformerDiscoverer()
-
-
Method Details
-
candidates
Description copied from interface:ITransformerDiscoveryService
Return a list of additional paths to be added to transformer service discovery during loading.- Specified by:
candidates
in interfaceITransformerDiscoveryService
- Parameters:
gameDirectory
- The root game directory- Returns:
- The list of services
-
candidates
Description copied from interface:ITransformerDiscoveryService
Return a list of additional paths to be added to transformer service discovery during loading. Defaults to callingITransformerDiscoveryService.candidates(Path)
- Specified by:
candidates
in interfaceITransformerDiscoveryService
- Parameters:
gameDirectory
- The root game directorylaunchTarget
- The launch target- Returns:
- The list of services
-
scan
-
locateTransformers
- Throws:
IOException
-
scanModClasses
-