Package net.minecraft.network.encryption
Record Class PublicPlayerSession.Serialized
java.lang.Object
java.lang.Record
net.minecraft.network.encryption.PublicPlayerSession.Serialized
- Record Components:
sessionId
-publicKeyData
-
- Enclosing class:
PublicPlayerSession
public static record PublicPlayerSession.Serialized(UUID sessionId, PlayerPublicKey.PublicKeyData publicKeyData)
extends Record
- Mappings:
Namespace Name official vw$a
intermediary net/minecraft/class_7822$class_7823
named net/minecraft/network/encryption/PublicPlayerSession$Serialized
official a
intermediary comp_1087
named sessionId
official b
intermediary comp_1088
named publicKeyData
-
Field Summary
Modifier and TypeFieldDescriptionprivate final PlayerPublicKey.PublicKeyData
The field for thepublicKeyData
record component.private final UUID
The field for thesessionId
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.fromBuf
(PacketByteBuf buf) final int
hashCode()
Returns a hash code value for this object.Returns the value of thepublicKeyData
record component.Returns the value of thesessionId
record component.toSession
(com.mojang.authlib.GameProfile gameProfile, SignatureVerifier servicesSignatureVerifier) final String
toString()
Returns a string representation of this record class.static void
write
(PacketByteBuf buf, PublicPlayerSession.Serialized serialized)
-
Field Details
-
sessionId
The field for thesessionId
record component. -
publicKeyData
The field for thepublicKeyData
record component.
-
-
Constructor Details
-
Serialized
-
-
Method Details
-
fromBuf
- Mappings:
Namespace Name Mixin selector official a
Lvw$a;a(Lui;)Lvw$a;
intermediary method_46301
Lnet/minecraft/class_7822$class_7823;method_46301(Lnet/minecraft/class_2540;)Lnet/minecraft/class_7822$class_7823;
named fromBuf
Lnet/minecraft/network/encryption/PublicPlayerSession$Serialized;fromBuf(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/encryption/PublicPlayerSession$Serialized;
-
write
- Mappings:
Namespace Name Mixin selector official a
Lvw$a;a(Lui;Lvw$a;)V
intermediary method_46303
Lnet/minecraft/class_7822$class_7823;method_46303(Lnet/minecraft/class_2540;Lnet/minecraft/class_7822$class_7823;)V
named write
Lnet/minecraft/network/encryption/PublicPlayerSession$Serialized;write(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/network/encryption/PublicPlayerSession$Serialized;)V
-
toSession
public PublicPlayerSession toSession(com.mojang.authlib.GameProfile gameProfile, SignatureVerifier servicesSignatureVerifier) throws PlayerPublicKey.PublicKeyException - Throws:
PlayerPublicKey.PublicKeyException
- Mappings:
Namespace Name Mixin selector official a
Lvw$a;a(Lcom/mojang/authlib/GameProfile;Lavc;)Lvw;
intermediary method_46300
Lnet/minecraft/class_7822$class_7823;method_46300(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/class_7500;)Lnet/minecraft/class_7822;
named toSession
Lnet/minecraft/network/encryption/PublicPlayerSession$Serialized;toSession(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/network/encryption/SignatureVerifier;)Lnet/minecraft/network/encryption/PublicPlayerSession;
-
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)
. -
sessionId
Returns the value of thesessionId
record component.- Returns:
- the value of the
sessionId
record component
-
publicKeyData
Returns the value of thepublicKeyData
record component.- Returns:
- the value of the
publicKeyData
record component
-