Record Class KnownVersions
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.providers.minecraft.verify.KnownVersions
The know versions keep track of the versions that are signed using SHA1 or not signature at all.
The maps are the Minecraft version to sha256 hash of the jar file.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclient()Returns the value of theclientrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.server()Returns the value of theserverrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
KnownVersions
Creates an instance of aKnownVersionsrecord class.- Parameters:
client- the value for theclientrecord componentserver- the value for theserverrecord 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). -
client
Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
server
Returns the value of theserverrecord component.- Returns:
- the value of the
serverrecord component
-