Record Class JoinMinecraftServerRequest
java.lang.Object
java.lang.Record
com.mojang.authlib.yggdrasil.request.JoinMinecraftServerRequest
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJoinMinecraftServerRequest(String accessToken, UUID selectedProfile, String serverId) Creates an instance of aJoinMinecraftServerRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theselectedProfilerecord component.serverId()Returns the value of theserverIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
accessToken
The field for theaccessTokenrecord component. -
selectedProfile
The field for theselectedProfilerecord component. -
serverId
The field for theserverIdrecord component.
-
-
Constructor Details
-
JoinMinecraftServerRequest
Creates an instance of aJoinMinecraftServerRequestrecord class.- Parameters:
accessToken- the value for theaccessTokenrecord componentselectedProfile- the value for theselectedProfilerecord componentserverId- the value for theserverIdrecord component
-
-
Method Details
-
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). -
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
selectedProfile
Returns the value of theselectedProfilerecord component.- Returns:
- the value of the
selectedProfilerecord component
-
serverId
Returns the value of theserverIdrecord component.- Returns:
- the value of the
serverIdrecord component
-