Package net.fabricmc.loom.api.remapping
Interface RemapperExtension<T extends RemapperParameters>
- Type Parameters:
T- Parameter type for the extension. Should beRemapperParameters.Noneif 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 TypeMethodDescriptionorg.objectweb.asm.ClassVisitorinsertVisitor(String className, RemapperContext remapperContext, org.objectweb.asm.ClassVisitor classVisitor) Return aClassVisitorthat 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 aClassVisitorthat will be used when remapping the given class.- Parameters:
className- The name of the class being remappedremapperContext- The remapper contextclassVisitor- The parent class visitor- Returns:
- A
ClassVisitorthat will be used when remapping the given class, or the givenclassVisitorif no extra processing is required for this class.
-