Package net.neoforged.fml.loading
Class ModDirTransformerDiscoverer
java.lang.Object
net.neoforged.fml.loading.ModDirTransformerDiscoverer
- All Implemented Interfaces:
ITransformerDiscoveryService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate UncheckedIOException
private static final org.slf4j.Logger
-
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.void
earlyInitialization
(String launchTarget, String[] arguments) An opportunity for early transformer services to do something once the service layer has been built.private static void
private static boolean
shouldLoadInServiceLayer
(Path path)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
alreadyFailed
-
found
-
-
Constructor Details
-
ModDirTransformerDiscoverer
public ModDirTransformerDiscoverer()
-
-
Method Details
-
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
-
earlyInitialization
Description copied from interface:ITransformerDiscoveryService
An opportunity for early transformer services to do something once the service layer has been built.- Specified by:
earlyInitialization
in interfaceITransformerDiscoveryService
- Parameters:
launchTarget
- The launch targetarguments
- The full command arguments to the game
-
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
-
allExcluded
-
scan
-
shouldLoadInServiceLayer
-