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 intermediary net/minecraft/class_7822$class_7823official tm$anamed net/minecraft/network/encryption/PublicPlayerSession$Serializedintermediary comp_1087official anamed sessionIdintermediary comp_1088official bnamed publicKeyData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PlayerPublicKey.PublicKeyDataThe field for thepublicKeyDatarecord component.private final UUIDThe field for thesessionIdrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fromBuf(PacketByteBuf buf) final inthashCode()Returns a hash code value for this object.Returns the value of thepublicKeyDatarecord component.Returns the value of thesessionIdrecord component.toSession(com.mojang.authlib.GameProfile gameProfile, SignatureVerifier servicesSignatureVerifier, Duration gracePeriod) final StringtoString()Returns a string representation of this record class.static voidwrite(PacketByteBuf buf, PublicPlayerSession.Serialized serialized)
-
Field Details
-
sessionId
The field for thesessionIdrecord component. -
publicKeyData
The field for thepublicKeyDatarecord component.
-
-
Constructor Details
-
Serialized
-
-
Method Details
-
fromBuf
- Mappings:
Namespace Name Mixin selector intermediary method_46301Lnet/minecraft/class_7822$class_7823;method_46301(Lnet/minecraft/class_2540;)Lnet/minecraft/class_7822$class_7823;official aLtm$a;a(Lsf;)Ltm$a;named fromBufLnet/minecraft/network/encryption/PublicPlayerSession$Serialized;fromBuf(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/encryption/PublicPlayerSession$Serialized;
-
write
- Mappings:
Namespace Name Mixin selector intermediary method_46303Lnet/minecraft/class_7822$class_7823;method_46303(Lnet/minecraft/class_2540;Lnet/minecraft/class_7822$class_7823;)Vofficial aLtm$a;a(Lsf;Ltm$a;)Vnamed writeLnet/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, Duration gracePeriod) throws PlayerPublicKey.PublicKeyException - Throws:
PlayerPublicKey.PublicKeyException- Mappings:
Namespace Name Mixin selector intermediary method_46300Lnet/minecraft/class_7822$class_7823;method_46300(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/class_7500;Ljava/time/Duration;)Lnet/minecraft/class_7822;official aLtm$a;a(Lcom/mojang/authlib/GameProfile;Lapj;Ljava/time/Duration;)Ltm;named toSessionLnet/minecraft/network/encryption/PublicPlayerSession$Serialized;toSession(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/network/encryption/SignatureVerifier;Ljava/time/Duration;)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 thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
publicKeyData
Returns the value of thepublicKeyDatarecord component.- Returns:
- the value of the
publicKeyDatarecord component
-