Package dev.architectury.loom.mappings
Record Class ForgeMappingsMerger.ExtraMappings
java.lang.Object
java.lang.Record
dev.architectury.loom.mappings.ForgeMappingsMerger.ExtraMappings
- Enclosing class:
ForgeMappingsMerger
-
Constructor Summary
ConstructorsConstructorDescriptionExtraMappings(Path path, net.fabricmc.mappingio.format.MappingFormat format, String obfuscatedNamespace, String deobfuscatedNamespace) Creates an instance of aExtraMappingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeobfuscatedNamespacerecord component.final booleanIndicates whether some other object is "equal to" this one.net.fabricmc.mappingio.format.MappingFormatformat()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theobfuscatedNamespacerecord component.ofMojmapTsrg(Path path) path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExtraMappings
public ExtraMappings(Path path, net.fabricmc.mappingio.format.MappingFormat format, String obfuscatedNamespace, String deobfuscatedNamespace) Creates an instance of aExtraMappingsrecord class.- Parameters:
path- the value for thepathrecord componentformat- the value for theformatrecord componentobfuscatedNamespace- the value for theobfuscatedNamespacerecord componentdeobfuscatedNamespace- the value for thedeobfuscatedNamespacerecord component
-
-
Method Details
-
ofMojmapTsrg
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
format
public net.fabricmc.mappingio.format.MappingFormat format()Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
obfuscatedNamespace
Returns the value of theobfuscatedNamespacerecord component.- Returns:
- the value of the
obfuscatedNamespacerecord component
-
deobfuscatedNamespace
Returns the value of thedeobfuscatedNamespacerecord component.- Returns:
- the value of the
deobfuscatedNamespacerecord component
-