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 String
The field for thefmlVersion
record component.private final String
The field for themcVersion
record component.private final String
The field for theneoForgeVersion
record component.private final String
The field for theneoFormVersion
record component. -
Constructor Summary
ConstructorsConstructorDescriptionVersionInfo
(String neoForgeVersion, String fmlVersion, String mcVersion, String neoFormVersion) Creates an instance of aVersionInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefmlVersion
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of themcVersion
record component.Returns the value of theneoForgeVersion
record component.Returns the value of theneoFormVersion
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
neoForgeVersion
The field for theneoForgeVersion
record component. -
fmlVersion
The field for thefmlVersion
record component. -
mcVersion
The field for themcVersion
record component. -
neoFormVersion
The field for theneoFormVersion
record component.
-
-
Constructor Details
-
VersionInfo
public VersionInfo(String neoForgeVersion, String fmlVersion, String mcVersion, String neoFormVersion) Creates an instance of aVersionInfo
record class.- Parameters:
neoForgeVersion
- the value for theneoForgeVersion
record componentfmlVersion
- the value for thefmlVersion
record componentmcVersion
- the value for themcVersion
record componentneoFormVersion
- the value for theneoFormVersion
record 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 theneoForgeVersion
record component.- Returns:
- the value of the
neoForgeVersion
record component
-
fmlVersion
Returns the value of thefmlVersion
record component.- Returns:
- the value of the
fmlVersion
record component
-
mcVersion
Returns the value of themcVersion
record component.- Returns:
- the value of the
mcVersion
record component
-
neoFormVersion
Returns the value of theneoFormVersion
record component.- Returns:
- the value of the
neoFormVersion
record component
-