Package dev.architectury.loom.forge
Record Class ForgeMemberNameFixer.Stats
java.lang.Object
java.lang.Record
dev.architectury.loom.forge.ForgeMemberNameFixer.Stats
- Record Components:
mappingCount- 建立的映射条目数changedClasses- 实际被改写的 class 数resolvedInheritedFields- 靠继承链解析翻译的字段引用处数
- Enclosing class:
ForgeMemberNameFixer
public static record ForgeMemberNameFixer.Stats(int mappingCount, int changedClasses, int resolvedInheritedFields)
extends Record
改写统计.
-
Constructor Summary
ConstructorsConstructorDescriptionStats(int mappingCount, int changedClasses, int resolvedInheritedFields) Creates an instance of aStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thechangedClassesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themappingCountrecord component.intReturns the value of theresolvedInheritedFieldsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Stats
public Stats(int mappingCount, int changedClasses, int resolvedInheritedFields) Creates an instance of aStatsrecord class.- Parameters:
mappingCount- the value for themappingCountrecord componentchangedClasses- the value for thechangedClassesrecord componentresolvedInheritedFields- the value for theresolvedInheritedFieldsrecord 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. All components in this record class are compared with '=='. -
mappingCount
public int mappingCount()Returns the value of themappingCountrecord component.- Returns:
- the value of the
mappingCountrecord component
-
changedClasses
public int changedClasses()Returns the value of thechangedClassesrecord component.- Returns:
- the value of the
changedClassesrecord component
-
resolvedInheritedFields
public int resolvedInheritedFields()Returns the value of theresolvedInheritedFieldsrecord component.- Returns:
- the value of the
resolvedInheritedFieldsrecord component
-