Package net.neoforged.fml.loading
Record Class VersionInfo
java.lang.Object
java.lang.Record
net.neoforged.fml.loading.VersionInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thefmlVersionrecord component.private final StringThe field for themcVersionrecord component.private final StringThe field for theneoForgeVersionrecord component.private final StringThe field for theneoFormVersionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionVersionInfo(String neoForgeVersion, String fmlVersion, 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.Returns the value of thefmlVersionrecord component.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. -
fmlVersion
The field for thefmlVersionrecord component. -
mcVersion
The field for themcVersionrecord component. -
neoFormVersion
The field for theneoFormVersionrecord component.
-
-
Constructor Details
-
VersionInfo
public VersionInfo(String neoForgeVersion, String fmlVersion, String mcVersion, String neoFormVersion) Creates an instance of aVersionInforecord class.- Parameters:
neoForgeVersion- the value for theneoForgeVersionrecord componentfmlVersion- the value for thefmlVersionrecord componentmcVersion- the value for themcVersionrecord componentneoFormVersion- the value for theneoFormVersionrecord component
-
-
Method Details
-
mcAndFmlVersion
-
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
-
fmlVersion
Returns the value of thefmlVersionrecord component.- Returns:
- the value of the
fmlVersionrecord 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
-