Class ExtensionClassExporter

java.lang.Object
org.spongepowered.asm.mixin.transformer.ext.extensions.ExtensionClassExporter
All Implemented Interfaces:
IExtension

public class ExtensionClassExporter extends Object implements IExtension
Debug exporter
  • Constructor Details

  • Method Details

    • isDecompilerActive

      public boolean isDecompilerActive()
    • checkActive

      public boolean checkActive(MixinEnvironment environment)
      Description copied from interface: IExtension
      Check whether this extension is active for the specified environment
      Specified by:
      checkActive in interface IExtension
      Parameters:
      environment - current environment
      Returns:
      true if the module should be active in the specified environment
    • preApply

      public void preApply(ITargetClassContext context)
      Description copied from interface: IExtension
      Called before the mixins are applied
      Specified by:
      preApply in interface IExtension
      Parameters:
      context - Target class context
    • postApply

      public void postApply(ITargetClassContext context)
      Description copied from interface: IExtension
      Called after the mixins are applied
      Specified by:
      postApply in interface IExtension
      Parameters:
      context - Target class context
    • export

      public void export(MixinEnvironment env, String name, boolean force, org.objectweb.asm.tree.ClassNode classNode)
      Description copied from interface: IExtension
      Called when a class needs to be exported
      Specified by:
      export in interface IExtension
      Parameters:
      env - Environment
      name - Class name
      force - True to export even if the current environment settings would normally disable it
      classNode - Class to export
    • dumpClass

      public File dumpClass(String fileName, org.objectweb.asm.tree.ClassNode classNode)
      Write class bytecode to disk for debug purposes
      Parameters:
      fileName - filename to write (.class will be automatically appended)
      classNode - class to dump
      Returns:
      written file