Package net.minecraftforge.fml.loading
Record Class VersionInfo.JSON
java.lang.Object
java.lang.Record
net.minecraftforge.fml.loading.VersionInfo.JSON
- Enclosing class:
VersionInfo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.forge()Returns the value of theforgerecord component.final inthashCode()Returns a hash code value for this object.mc()Returns the value of themcrecord component.mcp()Returns the value of themcprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
forge
The field for theforgerecord component. -
mcp
The field for themcprecord component. -
mc
The field for themcrecord component.
-
-
Constructor Details
-
JSON
Creates an instance of aJSONrecord class.- Parameters:
forge- the value for theforgerecord componentmcp- the value for themcprecord componentmc- the value for themcrecord component
-
-
Method Details
-
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). -
forge
Returns the value of theforgerecord component.- Returns:
- the value of the
forgerecord component
-
mcp
Returns the value of themcprecord component.- Returns:
- the value of the
mcprecord component
-
mc
Returns the value of themcrecord component.- Returns:
- the value of the
mcrecord component
-