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
-
Method Details
-
transform
- Parameters:
className- the class's real (obfuscated) name, dot-separated (e.g."bao")classBytes- the class's current bytecode- Returns:
- the transformed bytecode, or
nullto leave the class unchanged
-