Interface IExtension
- All Known Implementing Classes:
ExtensionCheckClass,ExtensionCheckInterfaces,ExtensionClassExporter,ExtensionLVTCleaner
public interface IExtension
Mixin Transformer extension interface for pre- and post-processors
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckActive(MixinEnvironment environment) Check whether this extension is active for the specified environmentvoidexport(MixinEnvironment env, String name, boolean force, org.objectweb.asm.tree.ClassNode classNode) Called when a class needs to be exportedvoidpostApply(ITargetClassContext context) Called after the mixins are appliedvoidpreApply(ITargetClassContext context) Called before the mixins are applied
-
Method Details
-
checkActive
Check whether this extension is active for the specified environment- Parameters:
environment- current environment- Returns:
- true if the module should be active in the specified environment
-
preApply
Called before the mixins are applied- Parameters:
context- Target class context
-
postApply
Called after the mixins are applied- Parameters:
context- Target class context
-
export
void export(MixinEnvironment env, String name, boolean force, org.objectweb.asm.tree.ClassNode classNode) Called when a class needs to be exported- Parameters:
env- Environmentname- Class nameforce- True to export even if the current environment settings would normally disable itclassNode- Class to export
-