Package net.neoforged.fml.loading
Record Class VersionInfo
java.lang.Object
java.lang.Record
net.neoforged.fml.loading.VersionInfo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVersionInfo(String neoForgeVersion, String mcVersion, String neoFormVersion) Creates an instance of aVersionInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themcVersionrecord component.Returns the value of theneoForgeVersionrecord component.Returns the value of theneoFormVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
neoForgeVersion
The field for theneoForgeVersionrecord component. -
mcVersion
The field for themcVersionrecord component. -
neoFormVersion
The field for theneoFormVersionrecord component.
-
-
Constructor Details
-
VersionInfo
Creates an instance of aVersionInforecord class.- Parameters:
neoForgeVersion- the value for theneoForgeVersionrecord componentmcVersion- the value for themcVersionrecord componentneoFormVersion- the value for theneoFormVersionrecord component
-
-
Method Details
-
mcAndNeoFormVersion
-
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). -
neoForgeVersion
Returns the value of theneoForgeVersionrecord component.- Returns:
- the value of the
neoForgeVersionrecord component
-
mcVersion
Returns the value of themcVersionrecord component.- Returns:
- the value of the
mcVersionrecord component
-
neoFormVersion
Returns the value of theneoFormVersionrecord component.- Returns:
- the value of the
neoFormVersionrecord component
-