Record Class PublicPlayerSession

java.lang.Object
java.lang.Record
net.minecraft.network.encryption.PublicPlayerSession
Record Components:
sessionId -
publicKeyData -

public record PublicPlayerSession(UUID sessionId, PlayerPublicKey publicKeyData) extends Record
Mappings:
Namespace Name
named net/minecraft/network/encryption/PublicPlayerSession
intermediary net/minecraft/class_7822
official xp
named sessionId
intermediary comp_1085
official a
named publicKeyData
intermediary comp_1086
official b
  • Field Details

  • Constructor Details

    • PublicPlayerSession

      public PublicPlayerSession(UUID uUID, PlayerPublicKey playerPublicKey)
  • Method Details

    • createVerifier

      public MessageVerifier createVerifier(Duration gracePeriod)
      Mappings:
      Namespace Name Mixin selector
      named createVerifier Lnet/minecraft/network/encryption/PublicPlayerSession;createVerifier(Ljava/time/Duration;)Lnet/minecraft/network/message/MessageVerifier;
      intermediary method_46296 Lnet/minecraft/class_7822;method_46296(Ljava/time/Duration;)Lnet/minecraft/class_7615;
      official a Lxp;a(Ljava/time/Duration;)Lxu;
    • createUnpacker

      public MessageChain.Unpacker createUnpacker(UUID sender)
      Mappings:
      Namespace Name Mixin selector
      named createUnpacker Lnet/minecraft/network/encryption/PublicPlayerSession;createUnpacker(Ljava/util/UUID;)Lnet/minecraft/network/message/MessageChain$Unpacker;
      intermediary method_46297 Lnet/minecraft/class_7822;method_46297(Ljava/util/UUID;)Lnet/minecraft/class_7610$class_7611;
      official a Lxp;a(Ljava/util/UUID;)Lxs$b;
    • toSerialized

      public PublicPlayerSession.Serialized toSerialized()
      Mappings:
      Namespace Name Mixin selector
      named toSerialized Lnet/minecraft/network/encryption/PublicPlayerSession;toSerialized()Lnet/minecraft/network/encryption/PublicPlayerSession$Serialized;
      intermediary method_46298 Lnet/minecraft/class_7822;method_46298()Lnet/minecraft/class_7822$class_7823;
      official a Lxp;a()Lxp$a;
    • isKeyExpired

      public boolean isKeyExpired()
      Mappings:
      Namespace Name Mixin selector
      named isKeyExpired Lnet/minecraft/network/encryption/PublicPlayerSession;isKeyExpired()Z
      intermediary method_51466 Lnet/minecraft/class_7822;method_51466()Z
      official b Lxp;b()Z
    • 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()
      Returns the value of the publicKeyData record component.
      Returns:
      the value of the publicKeyData record component