Class ClassTweakerRemapperVisitor

java.lang.Object
net.fabricmc.classtweaker.visitors.ClassTweakerRemapperVisitor
All Implemented Interfaces:
ClassTweakerVisitor

public final class ClassTweakerRemapperVisitor extends Object implements ClassTweakerVisitor
Decorates a ClassTweakerVisitor with a Remapper to remap names passing through the visitor if they come from a different namespace.
  • Constructor Details

    • ClassTweakerRemapperVisitor

      public ClassTweakerRemapperVisitor(ClassTweakerVisitor delegate, Remapper remapper, String fromNamespace, String toNamespace)
      Parameters:
      delegate - The visitor to forward the remapped information to.
      remapper - Will be used to remap names found in the access widener.
      fromNamespace - The expected namespace of the access widener being remapped. Remapping fails if the actual namespace is different.
      toNamespace - The namespace that the access widener will be remapped to.
  • Method Details