Class CoreModClassRemapper

java.lang.Object
dev.architectury.loom.forge.CoreModClassRemapper

public final class CoreModClassRemapper extends Object
Remaps coremod class names from SRG to Yarn.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    remap(Path js, boolean isRuntimeMojang, net.fabricmc.mappingio.tree.MappingTree mappings, String sourceNamespace)
     
    static void
    remapJar(boolean isRuntimeMojang, Path jar, net.fabricmc.mappingio.tree.MappingTree mappings, String sourceNamespace)
    重映射 jar 内 CoreMod 清单条目的类名.
    static void
    remapJar(org.gradle.api.Project project, boolean isRuntimeMojang, 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

    • CoreModClassRemapper

      public CoreModClassRemapper()
  • Method Details

    • remapJar

      public static void remapJar(boolean isRuntimeMojang, Path jar, net.fabricmc.mappingio.tree.MappingTree mappings, String sourceNamespace) throws IOException
      重映射 jar 内 CoreMod 清单条目的类名.

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

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

      public static void remap(Path js, boolean isRuntimeMojang, net.fabricmc.mappingio.tree.MappingTree mappings, String sourceNamespace) throws IOException
      Throws:
      IOException
    • remapJar

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