Class AtClassRemapper

java.lang.Object
dev.architectury.loom.accesstransformer.AtClassRemapper

public final class AtClassRemapper extends Object
Remaps AT classes from SRG to Yarn.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    remap(Path jar, net.fabricmc.mappingio.tree.MappingTree mappings, String sourceNamespace)
    重映射 jar 内 AT 条目的类名(SRG → named).
    static void
    remap(org.gradle.api.Project project, Path jar, net.fabricmc.mappingio.tree.MappingTree mappings)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AtClassRemapper

      public AtClassRemapper()
  • Method Details

    • remap

      public static void remap(Path jar, net.fabricmc.mappingio.tree.MappingTree mappings, String sourceNamespace) throws IOException
      重映射 jar 内 AT 条目的类名(SRG → named).

      不依赖 Project:源命名空间由调用方给出,日志走静态 logger。 项目模型版本委托到此,二者共用同一份实现,避免任务化时出现第二份拷贝。

      Parameters:
      sourceNamespace - AT 条目当前所处的命名空间
      Throws:
      IOException
    • remap

      public static void remap(org.gradle.api.Project project, Path jar, net.fabricmc.mappingio.tree.MappingTree mappings) throws IOException
      Throws:
      IOException