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 Type
    Method
    Description
    candidates(Path gameDirectory)
    Return a list of additional paths to be added to transformer service discovery during loading.
    default List<NamedPath>
    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

      List<NamedPath> candidates(Path gameDirectory)
      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

      default List<NamedPath> candidates(Path gameDirectory, String launchTarget)
      Return a list of additional paths to be added to transformer service discovery during loading. Defaults to calling candidates(Path)
      Parameters:
      gameDirectory - The root game directory
      launchTarget - The launch target
      Returns:
      The list of services
    • earlyInitialization

      default void earlyInitialization(String launchTarget, String[] arguments)
      An opportunity for early transformer services to do something once the service layer has been built.
      Parameters:
      launchTarget - The launch target
      arguments - The full command arguments to the game