Package net.minecraftforge.fml.loading
Record Class VersionInfo
java.lang.Object
java.lang.Record
net.minecraftforge.fml.loading.VersionInfo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVersionInfo(String forgeVersion, String mcVersion, String mcpVersion, String forgeGroup)Creates an instance of aVersionInforecord class.VersionInfo(Map<String,?> arguments) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.Returns the value of theforgeGrouprecord component.Returns the value of theforgeVersionrecord component.inthashCode()Returns a hash code value for this object.Returns the value of themcpVersionrecord component.Returns the value of themcVersionrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
forgeVersion
The field for theforgeVersionrecord component. -
mcVersion
The field for themcVersionrecord component. -
mcpVersion
The field for themcpVersionrecord component. -
forgeGroup
The field for theforgeGrouprecord component.
-
-
Constructor Details
-
VersionInfo
-
VersionInfo
Creates an instance of aVersionInforecord class.- Parameters:
forgeVersion- the value for theforgeVersionrecord componentmcVersion- the value for themcVersionrecord componentmcpVersion- the value for themcpVersionrecord componentforgeGroup- the value for theforgeGrouprecord component
-
-
Method Details
-
mcAndForgeVersion
-
mcAndMCPVersion
-
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). -
forgeVersion
Returns the value of theforgeVersionrecord component.- Returns:
- the value of the
forgeVersionrecord component
-
mcVersion
Returns the value of themcVersionrecord component.- Returns:
- the value of the
mcVersionrecord component
-
mcpVersion
Returns the value of themcpVersionrecord component.- Returns:
- the value of the
mcpVersionrecord component
-
forgeGroup
Returns the value of theforgeGrouprecord component.- Returns:
- the value of the
forgeGrouprecord component
-