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
named net/minecraft/network/encryption/PublicPlayerSession$Serialized
intermediary net/minecraft/class_7822$class_7823
official yg$a
named sessionId
intermediary comp_1087
official a
named publicKeyData
intermediary comp_1088
official b
  • Field Details

  • Constructor Details

  • Method Details

    • fromBuf

      public static PublicPlayerSession.Serialized fromBuf(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named fromBuf Lnet/minecraft/network/encryption/PublicPlayerSession$Serialized;fromBuf(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/network/encryption/PublicPlayerSession$Serialized;
      intermediary method_46301 Lnet/minecraft/class_7822$class_7823;method_46301(Lnet/minecraft/class_2540;)Lnet/minecraft/class_7822$class_7823;
      official a Lyg$a;a(Lwm;)Lyg$a;
    • write

      public static void write(PacketByteBuf buf, PublicPlayerSession.Serialized serialized)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/encryption/PublicPlayerSession$Serialized;write(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/network/encryption/PublicPlayerSession$Serialized;)V
      intermediary method_46303 Lnet/minecraft/class_7822$class_7823;method_46303(Lnet/minecraft/class_2540;Lnet/minecraft/class_7822$class_7823;)V
      official a Lyg$a;a(Lwm;Lyg$a;)V
    • toSession

      public PublicPlayerSession toSession(com.mojang.authlib.GameProfile gameProfile, SignatureVerifier servicesSignatureVerifier) throws PlayerPublicKey.PublicKeyException
      Throws:
      PlayerPublicKey.PublicKeyException
      Mappings:
      Namespace Name Mixin selector
      named toSession Lnet/minecraft/network/encryption/PublicPlayerSession$Serialized;toSession(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/network/encryption/SignatureVerifier;)Lnet/minecraft/network/encryption/PublicPlayerSession;
      intermediary method_46300 Lnet/minecraft/class_7822$class_7823;method_46300(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/class_7500;)Lnet/minecraft/class_7822;
      official a Lyg$a;a(Lcom/mojang/authlib/GameProfile;Lazm;)Lyg;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • sessionId

      public UUID sessionId()
      Returns the value of the sessionId record component.
      Returns:
      the value of the sessionId record component
    • publicKeyData

      public PlayerPublicKey.PublicKeyData publicKeyData()
      Returns the value of the publicKeyData record component.
      Returns:
      the value of the publicKeyData record component