Interface RemapperExtension<T extends RemapperParameters>

Type Parameters:
T - Parameter type for the extension. Should be RemapperParameters.None if the action does not have parameters.

public interface RemapperExtension<T extends RemapperParameters>
A remapper extension can be used to add extra processing to the remapping process.

Implementations of RemapperExtension's must have the following: A single constructor annotated with Inject, and taking a single argument of the parameters. Or a single constructor annotated with Inject taking no arguments, when the extension does not have any parameters.

Use LoomGradleExtensionAPI.addRemapperExtension(Class, Class, Action) to register a remapper extension.

  • Method Summary

    Modifier and Type
    Method
    Description
    org.objectweb.asm.ClassVisitor
    insertVisitor(String className, RemapperContext remapperContext, org.objectweb.asm.ClassVisitor classVisitor)
    Return a ClassVisitor that will be used when remapping the given class.
  • Method Details

    • insertVisitor

      org.objectweb.asm.ClassVisitor insertVisitor(String className, RemapperContext remapperContext, org.objectweb.asm.ClassVisitor classVisitor)
      Return a ClassVisitor that will be used when remapping the given class.
      Parameters:
      className - The name of the class being remapped
      remapperContext - The remapper context
      classVisitor - The parent class visitor
      Returns:
      A ClassVisitor that will be used when remapping the given class, or the given classVisitor if no extra processing is required for this class.