Class ClassToInterfaceRule

java.lang.Object
io.papermc.asm.rules.classes.ClassToInterfaceRule
All Implemented Interfaces:
RewriteRule, RewriteRule.Delegate

public final class ClassToInterfaceRule extends Object implements RewriteRule.Delegate
Rewrites all methods on a target class to be interface methods.
  • Constructor Details

    • ClassToInterfaceRule

      public ClassToInterfaceRule(ClassDesc owner, @Nullable ClassDesc redirectExtension)
      Rewrites all methods on a target class to be interface methods.
      Parameters:
      owner - the class to target
      redirectExtension - an optional new owner for the methods to maintain more compatibility if the bytecode extended the owner type
  • Method Details