Package net.fabricmc.loom.core
Record Class MinecraftJarRemap.Options
java.lang.Object
java.lang.Record
net.fabricmc.loom.core.MinecraftJarRemap.Options
- Record Components:
prebuiltRemapper- 已装配好的重映射器;为空时由本类按其余参数自行构建inputJar- 待重映射的 jaroutputJar- 产物位置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 Summary
ConstructorsConstructorDescriptionOptions(@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 aOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable AnnotationsDataReturns the value of theannotationsrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Consumer<net.fabricmc.tinyremapper.TinyRemapper.Builder> Returns the value of theextraRemapperConfigrecord component.booleanReturns the value of thefixRecordsrecord component.Returns the value of thefromNamespacerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinjectMixinExtensionrecord component.Returns the value of theinnerClassNamesrecord component.inputJar()Returns the value of theinputJarrecord component.booleanReturns the value of theisForgeLikerecord component.Returns the value of theknownIndyBsmsrecord component.@Nullable net.fabricmc.mappingio.tree.MemoryMappingTreemappings()Returns the value of themappingsrecord component.@Nullable StringReturns the value of theobjectHolderClassNamerecord component.@Nullable StringReturns the value of theobjectHolderSourceNamespacerecord component.@Nullable StringReturns the value of theobjectHolderTargetNamespacerecord component.Returns the value of theoutputJarrecord component.@Nullable net.fabricmc.tinyremapper.TinyRemapperReturns the value of theprebuiltRemapperrecord component.Returns the value of theremapClasspathrecord component.Returns the value of thesignaturesrecord component.Returns the value of thetoNamespacerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thevalidateTargetNamespacerecord component.
-
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 aOptionsrecord class.- Parameters:
prebuiltRemapper- the value for theprebuiltRemapperrecord componentinputJar- the value for theinputJarrecord componentoutputJar- the value for theoutputJarrecord componentremapClasspath- the value for theremapClasspathrecord componentmappings- the value for themappingsrecord componentfromNamespace- the value for thefromNamespacerecord componenttoNamespace- the value for thetoNamespacerecord componentisForgeLike- the value for theisForgeLikerecord componentinjectMixinExtension- the value for theinjectMixinExtensionrecord componentfixRecords- the value for thefixRecordsrecord componentvalidateTargetNamespace- the value for thevalidateTargetNamespacerecord componentinnerClassNames- the value for theinnerClassNamesrecord componentknownIndyBsms- the value for theknownIndyBsmsrecord componentannotations- the value for theannotationsrecord componentsignatures- the value for thesignaturesrecord componentobjectHolderClassName- the value for theobjectHolderClassNamerecord componentobjectHolderSourceNamespace- the value for theobjectHolderSourceNamespacerecord componentobjectHolderTargetNamespace- the value for theobjectHolderTargetNamespacerecord componentextraRemapperConfig- the value for theextraRemapperConfigrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
prebuiltRemapper
public @Nullable net.fabricmc.tinyremapper.TinyRemapper prebuiltRemapper()Returns the value of theprebuiltRemapperrecord component.- Returns:
- the value of the
prebuiltRemapperrecord component
-
inputJar
Returns the value of theinputJarrecord component.- Returns:
- the value of the
inputJarrecord component
-
outputJar
Returns the value of theoutputJarrecord component.- Returns:
- the value of the
outputJarrecord component
-
remapClasspath
Returns the value of theremapClasspathrecord component.- Returns:
- the value of the
remapClasspathrecord component
-
mappings
public @Nullable net.fabricmc.mappingio.tree.MemoryMappingTree mappings()Returns the value of themappingsrecord component.- Returns:
- the value of the
mappingsrecord component
-
fromNamespace
Returns the value of thefromNamespacerecord component.- Returns:
- the value of the
fromNamespacerecord component
-
toNamespace
Returns the value of thetoNamespacerecord component.- Returns:
- the value of the
toNamespacerecord component
-
isForgeLike
public boolean isForgeLike()Returns the value of theisForgeLikerecord component.- Returns:
- the value of the
isForgeLikerecord component
-
injectMixinExtension
public boolean injectMixinExtension()Returns the value of theinjectMixinExtensionrecord component.- Returns:
- the value of the
injectMixinExtensionrecord component
-
fixRecords
public boolean fixRecords()Returns the value of thefixRecordsrecord component.- Returns:
- the value of the
fixRecordsrecord component
-
validateTargetNamespace
public boolean validateTargetNamespace()Returns the value of thevalidateTargetNamespacerecord component.- Returns:
- the value of the
validateTargetNamespacerecord component
-
innerClassNames
Returns the value of theinnerClassNamesrecord component.- Returns:
- the value of the
innerClassNamesrecord component
-
knownIndyBsms
Returns the value of theknownIndyBsmsrecord component.- Returns:
- the value of the
knownIndyBsmsrecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-
signatures
Returns the value of thesignaturesrecord component.- Returns:
- the value of the
signaturesrecord component
-
objectHolderClassName
Returns the value of theobjectHolderClassNamerecord component.- Returns:
- the value of the
objectHolderClassNamerecord component
-
objectHolderSourceNamespace
Returns the value of theobjectHolderSourceNamespacerecord component.- Returns:
- the value of the
objectHolderSourceNamespacerecord component
-
objectHolderTargetNamespace
Returns the value of theobjectHolderTargetNamespacerecord component.- Returns:
- the value of the
objectHolderTargetNamespacerecord component
-
extraRemapperConfig
Returns the value of theextraRemapperConfigrecord component.- Returns:
- the value of the
extraRemapperConfigrecord component
-