Package net.minecraftforge.fml.loading
Record Class VersionInfo
java.lang.Object
java.lang.Record
net.minecraftforge.fml.loading.VersionInfo
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final StringThe field for theforgeGrouprecord component.private final StringThe field for theforgeVersionrecord component.private final StringThe field for themcpVersionrecord component.private final StringThe field for themcVersionrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionVersionInfo(String forgeVersion, String mcVersion, String mcpVersion, String forgeGroup) Creates an instance of aVersionInforecord class.VersionInfo(Map<String, ?> arguments) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theforgeGrouprecord component.Returns the value of theforgeVersionrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themcpVersionrecord component.Returns the value of themcVersionrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
forgeVersionThe field for theforgeVersionrecord component.
- 
mcVersionThe field for themcVersionrecord component.
- 
mcpVersionThe field for themcpVersionrecord component.
- 
forgeGroupThe field for theforgeGrouprecord component.
 
- 
- 
Constructor Details- 
VersionInfo
- 
VersionInfoCreates an instance of aVersionInforecord class.- Parameters:
- forgeVersion- the value for the- forgeVersionrecord component
- mcVersion- the value for the- mcVersionrecord component
- mcpVersion- the value for the- mcpVersionrecord component
- forgeGroup- the value for the- forgeGrouprecord component
 
 
- 
- 
Method Details- 
mcAndForgeVersion
- 
mcAndMCPVersion
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
forgeVersionReturns the value of theforgeVersionrecord component.- Returns:
- the value of the forgeVersionrecord component
 
- 
mcVersionReturns the value of themcVersionrecord component.- Returns:
- the value of the mcVersionrecord component
 
- 
mcpVersionReturns the value of themcpVersionrecord component.- Returns:
- the value of the mcpVersionrecord component
 
- 
forgeGroupReturns the value of theforgeGrouprecord component.- Returns:
- the value of the forgeGrouprecord component
 
 
-