Record Class RemapperAdapter

java.lang.Object
java.lang.Record
org.cadixdev.mercury.remapper.RemapperAdapter

public record RemapperAdapter(net.fabricmc.tinyremapper.api.TrEnvironment trEnvironment) extends Record
  • Constructor Details

    • RemapperAdapter

      public RemapperAdapter(net.fabricmc.tinyremapper.api.TrEnvironment trEnvironment)
      Creates an instance of a RemapperAdapter record class.
      Parameters:
      trEnvironment - the value for the trEnvironment record component
  • Method Details

    • remapper

      public net.fabricmc.tinyremapper.api.TrRemapper remapper()
    • getClass

      @Nullable public @Nullable net.fabricmc.tinyremapper.api.TrClass getClass(String name)
    • getMethod

      @Nullable public @Nullable net.fabricmc.tinyremapper.api.TrMethod getMethod(String owner, String name, String desc)
    • mapClass

      public String mapClass(String name)
    • mapMethodName

      public String mapMethodName(String owner, String name, String descriptor)
    • mapFieldName

      public String mapFieldName(String owner, String name, String descriptor)
    • mapMethodArg

      public String mapMethodArg(String methodOwner, String methodName, String methodDesc, int lvIndex, String name)
    • getDeobfuscatedPackage

      public String getDeobfuscatedPackage(net.fabricmc.tinyremapper.api.TrClass trClass)
    • mapSimpleDeobfuscatedName

      public String mapSimpleDeobfuscatedName(String name)
    • getSimpleDeobfuscatedName

      public String getSimpleDeobfuscatedName(net.fabricmc.tinyremapper.api.TrClass trClass)
    • getFullDeobfuscatedName

      public String getFullDeobfuscatedName(net.fabricmc.tinyremapper.api.TrClass trClass)
    • getSimpleObfuscatedName

      public String getSimpleObfuscatedName(net.fabricmc.tinyremapper.api.TrClass trClass)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • trEnvironment

      public net.fabricmc.tinyremapper.api.TrEnvironment trEnvironment()
      Returns the value of the trEnvironment record component.
      Returns:
      the value of the trEnvironment record component