Interface IExtension
-
- All Known Implementing Classes:
ExtensionCheckClass,ExtensionCheckInterfaces,ExtensionClassExporter,ExtensionLVTCleaner
public interface IExtensionMixin Transformer extension interface for pre- and post-processors
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckActive(MixinEnvironment environment)Check whether this extension is active for the specified environmentvoidexport(MixinEnvironment env, java.lang.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 Detail
-
checkActive
boolean checkActive(MixinEnvironment environment)
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
void preApply(ITargetClassContext context)
Called before the mixins are applied- Parameters:
context- Target class context
-
postApply
void postApply(ITargetClassContext context)
Called after the mixins are applied- Parameters:
context- Target class context
-
export
void export(MixinEnvironment env, java.lang.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
-
-