Class RemapperChain

java.lang.Object
org.spongepowered.asm.obfuscation.RemapperChain
All Implemented Interfaces:
IRemapper

public class RemapperChain extends Object implements IRemapper
Mixin environment remapper chain. Contains all remappers for the current environment to facilitate remapping via all registered remappers.
  • Constructor Details

    • RemapperChain

      public RemapperChain()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • add

      public RemapperChain add(IRemapper remapper)
      Add a new remapper to this chain
      Parameters:
      remapper - remapper to add
      Returns:
      fluent interface
    • mapMethodName

      public String mapMethodName(String owner, String name, String desc)
      Description copied from interface: IRemapper
      Map method name to the new name. Subclasses can override.
      Specified by:
      mapMethodName in interface IRemapper
      Parameters:
      owner - owner of the method.
      name - name of the method.
      desc - descriptor of the method.
      Returns:
      new name of the method
    • mapFieldName

      public String mapFieldName(String owner, String name, String desc)
      Description copied from interface: IRemapper
      Map field name to the new name. Subclasses can override.
      Specified by:
      mapFieldName in interface IRemapper
      Parameters:
      owner - owner of the field.
      name - name of the field
      desc - descriptor of the field
      Returns:
      new name of the field.
    • map

      public String map(String typeName)
      Description copied from interface: IRemapper
      Map type name to the new name. Subclasses can override.
      Specified by:
      map in interface IRemapper
      Parameters:
      typeName - Class name to convert
      Returns:
      new name for the class
    • unmap

      public String unmap(String typeName)
      Description copied from interface: IRemapper
      Convert a mapped type name back to the original obfuscated name
      Specified by:
      unmap in interface IRemapper
      Parameters:
      typeName - Class name to convert
      Returns:
      old name for the class
    • mapDesc

      public String mapDesc(String desc)
      Description copied from interface: IRemapper
      Convert a descriptor to remapped form
      Specified by:
      mapDesc in interface IRemapper
      Parameters:
      desc - descriptor to convert
      Returns:
      new descriptor
    • unmapDesc

      public String unmapDesc(String desc)
      Description copied from interface: IRemapper
      Convert a descriptor back to the original obfuscated form
      Specified by:
      unmapDesc in interface IRemapper
      Parameters:
      desc - descriptor to convert
      Returns:
      old descriptor