Record Class DirectStaticRewrite

java.lang.Object
java.lang.Record
io.papermc.asm.rules.method.DirectStaticRewrite
Record Components:
owners - the owners to target
methodMatcher - the method matcher to use
staticRedirectOwner - the owner to redirect to
All Implemented Interfaces:
MethodRewriteRule, OwnableMethodRewriteRule, OwnableMethodRewriteRule.Filtered, StaticRewrite, OwnableRewriteRule, RewriteRule

public record DirectStaticRewrite(Set<ClassDesc> owners, @Nullable String staticMethodName, MethodMatcher methodMatcher, ClassDesc staticRedirectOwner) extends Record implements StaticRewrite, OwnableMethodRewriteRule.Filtered
Rewrites a method by just directly routing it to an identical static method in another class.