Package cpw.mods.modlauncher.serviceapi
Interface ITransformerDiscoveryService
- All Known Implementing Classes:
ClasspathTransformerDiscoverer
,ModDirTransformerDiscoverer
public interface ITransformerDiscoveryService
Called early in setup, to allow pluggable "discovery" of additional transformer services.
FML uses this to identify transformers in the mods directory (e.g. Optifine) for loading into ModLauncher.
-
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.default void
earlyInitialization
(String launchTarget, String[] arguments) An opportunity for early transformer services to do something once the service layer has been built.
-
Method Details
-
candidates
Return a list of additional paths to be added to transformer service discovery during loading.- Parameters:
gameDirectory
- The root game directory- Returns:
- The list of services
-
candidates
Return a list of additional paths to be added to transformer service discovery during loading. Defaults to callingcandidates(Path)
- Parameters:
gameDirectory
- The root game directorylaunchTarget
- The launch target- Returns:
- The list of services
-
earlyInitialization
An opportunity for early transformer services to do something once the service layer has been built.- Parameters:
launchTarget
- The launch targetarguments
- The full command arguments to the game
-