Record Class VersionChecker.VersionCheckRunnable
java.lang.Object
java.lang.Record
net.neoforged.neoforge.common.VersionChecker.VersionCheckRunnable
- All Implemented Interfaces:
Runnable
- Enclosing class:
VersionChecker
private static record VersionChecker.VersionCheckRunnable(IModInfo mod, HttpClient client)
extends Record
implements Runnable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HttpClientThe field for theclientrecord component.private final IModInfoThe field for themodrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateVersionCheckRunnable(IModInfo mod, HttpClient client) Creates an instance of aVersionCheckRunnablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionclient()Returns the value of theclientrecord component.private Stringfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mod()Returns the value of themodrecord component.voidrun()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
mod
The field for themodrecord component. -
client
The field for theclientrecord component.
-
-
Constructor Details
-
VersionCheckRunnable
Creates an instance of aVersionCheckRunnablerecord class.- Parameters:
mod- the value for themodrecord componentclient- the value for theclientrecord component
-
-
Method Details
-
createUserAgent
-
run
-
toString
-
hashCode
-
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). -
mod
Returns the value of themodrecord component.- Returns:
- the value of the
modrecord component
-
client
Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-