Interface AsmTransformer


public interface AsmTransformer
A mod's raw ASM entrypoint - for bytecode changes Mixin can't express (renaming members, adding interfaces, complex control-flow rewrites). Declared via "asmEntrypoint" in hloader.mod.json, and applied to every loaded class (hloader's and Mixin's own classes are always skipped) before Mixin's own transformer runs, so a mod can prepare bytecode Mixin then further processes.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    transform(String className, byte[] classBytes)
     
  • Method Details

    • transform

      byte[] transform(String className, byte[] classBytes)
      Parameters:
      className - the class's real (obfuscated) name, dot-separated (e.g. "bao")
      classBytes - the class's current bytecode
      Returns:
      the transformed bytecode, or null to leave the class unchanged