Record Class MinecraftJarRemap.Options

java.lang.Object
java.lang.Record
net.fabricmc.loom.core.MinecraftJarRemap.Options
Record Components:
prebuiltRemapper - 已装配好的重映射器;为空时由本类按其余参数自行构建
inputJar - 待重映射的 jar
outputJar - 产物位置
remapClasspath - 重映射 classpath(不含 inputJar 本身)
mappings - 已解析的映射树;仅自建 remapper 或需要 object holder 改写时必需
fromNamespace - 源命名空间
toNamespace - 目标命名空间
isForgeLike - 是否 Forge/NeoForge 系(影响冲突忽略策略与内部类映射)
injectMixinExtension - 是否注入 mixin 扩展(仅 NeoForge)
fixRecords - 是否修复 record 组件(Java 16+ 目标需要)
validateTargetNamespace - 是否校验目标命名空间存在
innerClassNames - Forge 系内部类重映射所需的类名集合
knownIndyBsms - 已知的 indy BSM 集合
annotations - 已算好的注解重映射数据;无则为空
signatures - 已算好的签名修复表
objectHolderClassName - 需要做 object holder 改写的类名;不需要则为空
objectHolderSourceNamespace - object holder 改写所用的源命名空间;不需要则为空
objectHolderTargetNamespace - object holder 改写所用的目标命名空间;不需要则为空
extraRemapperConfig - 子类追加的 remapper 配置(例如 split jar 的策略)
Enclosing class:
MinecraftJarRemap

public static record MinecraftJarRemap.Options(@Nullable net.fabricmc.tinyremapper.TinyRemapper prebuiltRemapper, Path inputJar, Path outputJar, List<Path> remapClasspath, @Nullable net.fabricmc.mappingio.tree.MemoryMappingTree mappings, String fromNamespace, String toNamespace, boolean isForgeLike, boolean injectMixinExtension, boolean fixRecords, boolean validateTargetNamespace, Set<String> innerClassNames, Set<String> knownIndyBsms, @Nullable AnnotationsData annotations, Map<String,String> signatures, @Nullable String objectHolderClassName, @Nullable String objectHolderSourceNamespace, @Nullable String objectHolderTargetNamespace, @Nullable Consumer<net.fabricmc.tinyremapper.TinyRemapper.Builder> extraRemapperConfig) extends Record
一次重映射所需的全部输入.
  • Constructor Details

    • Options

      public Options(@Nullable net.fabricmc.tinyremapper.TinyRemapper prebuiltRemapper, Path inputJar, Path outputJar, List<Path> remapClasspath, @Nullable net.fabricmc.mappingio.tree.MemoryMappingTree mappings, String fromNamespace, String toNamespace, boolean isForgeLike, boolean injectMixinExtension, boolean fixRecords, boolean validateTargetNamespace, Set<String> innerClassNames, Set<String> knownIndyBsms, @Nullable AnnotationsData annotations, Map<String,String> signatures, @Nullable String objectHolderClassName, @Nullable String objectHolderSourceNamespace, @Nullable String objectHolderTargetNamespace, @Nullable Consumer<net.fabricmc.tinyremapper.TinyRemapper.Builder> extraRemapperConfig)
      Creates an instance of a Options record class.
      Parameters:
      prebuiltRemapper - the value for the prebuiltRemapper record component
      inputJar - the value for the inputJar record component
      outputJar - the value for the outputJar record component
      remapClasspath - the value for the remapClasspath record component
      mappings - the value for the mappings record component
      fromNamespace - the value for the fromNamespace record component
      toNamespace - the value for the toNamespace record component
      isForgeLike - the value for the isForgeLike record component
      injectMixinExtension - the value for the injectMixinExtension record component
      fixRecords - the value for the fixRecords record component
      validateTargetNamespace - the value for the validateTargetNamespace record component
      innerClassNames - the value for the innerClassNames record component
      knownIndyBsms - the value for the knownIndyBsms record component
      annotations - the value for the annotations record component
      signatures - the value for the signatures record component
      objectHolderClassName - the value for the objectHolderClassName record component
      objectHolderSourceNamespace - the value for the objectHolderSourceNamespace record component
      objectHolderTargetNamespace - the value for the objectHolderTargetNamespace record component
      extraRemapperConfig - the value for the extraRemapperConfig record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • prebuiltRemapper

      public @Nullable net.fabricmc.tinyremapper.TinyRemapper prebuiltRemapper()
      Returns the value of the prebuiltRemapper record component.
      Returns:
      the value of the prebuiltRemapper record component
    • inputJar

      public Path inputJar()
      Returns the value of the inputJar record component.
      Returns:
      the value of the inputJar record component
    • outputJar

      public Path outputJar()
      Returns the value of the outputJar record component.
      Returns:
      the value of the outputJar record component
    • remapClasspath

      public List<Path> remapClasspath()
      Returns the value of the remapClasspath record component.
      Returns:
      the value of the remapClasspath record component
    • mappings

      public @Nullable net.fabricmc.mappingio.tree.MemoryMappingTree mappings()
      Returns the value of the mappings record component.
      Returns:
      the value of the mappings record component
    • fromNamespace

      public String fromNamespace()
      Returns the value of the fromNamespace record component.
      Returns:
      the value of the fromNamespace record component
    • toNamespace

      public String toNamespace()
      Returns the value of the toNamespace record component.
      Returns:
      the value of the toNamespace record component
    • isForgeLike

      public boolean isForgeLike()
      Returns the value of the isForgeLike record component.
      Returns:
      the value of the isForgeLike record component
    • injectMixinExtension

      public boolean injectMixinExtension()
      Returns the value of the injectMixinExtension record component.
      Returns:
      the value of the injectMixinExtension record component
    • fixRecords

      public boolean fixRecords()
      Returns the value of the fixRecords record component.
      Returns:
      the value of the fixRecords record component
    • validateTargetNamespace

      public boolean validateTargetNamespace()
      Returns the value of the validateTargetNamespace record component.
      Returns:
      the value of the validateTargetNamespace record component
    • innerClassNames

      public Set<String> innerClassNames()
      Returns the value of the innerClassNames record component.
      Returns:
      the value of the innerClassNames record component
    • knownIndyBsms

      public Set<String> knownIndyBsms()
      Returns the value of the knownIndyBsms record component.
      Returns:
      the value of the knownIndyBsms record component
    • annotations

      public @Nullable AnnotationsData annotations()
      Returns the value of the annotations record component.
      Returns:
      the value of the annotations record component
    • signatures

      public Map<String,String> signatures()
      Returns the value of the signatures record component.
      Returns:
      the value of the signatures record component
    • objectHolderClassName

      public @Nullable String objectHolderClassName()
      Returns the value of the objectHolderClassName record component.
      Returns:
      the value of the objectHolderClassName record component
    • objectHolderSourceNamespace

      public @Nullable String objectHolderSourceNamespace()
      Returns the value of the objectHolderSourceNamespace record component.
      Returns:
      the value of the objectHolderSourceNamespace record component
    • objectHolderTargetNamespace

      public @Nullable String objectHolderTargetNamespace()
      Returns the value of the objectHolderTargetNamespace record component.
      Returns:
      the value of the objectHolderTargetNamespace record component
    • extraRemapperConfig

      public @Nullable Consumer<net.fabricmc.tinyremapper.TinyRemapper.Builder> extraRemapperConfig()
      Returns the value of the extraRemapperConfig record component.
      Returns:
      the value of the extraRemapperConfig record component