Record Class SignedChatMessage

java.lang.Object
java.lang.Record
net.minecraft.network.encryption.SignedChatMessage
Record Components:
content -
signature -

public record SignedChatMessage(Text content, ChatMessageSignature signature) extends Record
Mappings:
Namespace Name
official rn
intermediary net/minecraft/class_7471
named net/minecraft/network/encryption/SignedChatMessage
official a
intermediary comp_804
named content
official b
intermediary comp_805
named signature
  • Field Details

  • Constructor Details

    • SignedChatMessage

      public SignedChatMessage(String content, ChatMessageSignature signature)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrn;<init>(Ljava/lang/String;Lrk;)V
      intermediary <init> Lnet/minecraft/class_7471;<init>(Ljava/lang/String;Lnet/minecraft/class_7469;)V
      named <init> Lnet/minecraft/network/encryption/SignedChatMessage;<init>(Ljava/lang/String;Lnet/minecraft/network/encryption/ChatMessageSignature;)V
    • SignedChatMessage

      public SignedChatMessage(Text text, ChatMessageSignature chatMessageSignature)
  • Method Details

    • verify

      public boolean verify(Signature signature) throws SignatureException
      Throws:
      SignatureException
      Mappings:
      Namespace Name Mixin selector
      official a Lrn;a(Ljava/security/Signature;)Z
      intermediary method_43868 Lnet/minecraft/class_7471;method_43868(Ljava/security/Signature;)Z
      named verify Lnet/minecraft/network/encryption/SignedChatMessage;verify(Ljava/security/Signature;)Z
    • verify

      public boolean verify(PlayerPublicKey publicKey)
      Mappings:
      Namespace Name Mixin selector
      official a Lrn;a(Lbsi;)Z
      intermediary method_43867 Lnet/minecraft/class_7471;method_43867(Lnet/minecraft/class_7428;)Z
      named verify Lnet/minecraft/network/encryption/SignedChatMessage;verify(Lnet/minecraft/network/encryption/PlayerPublicKey;)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.
    • content

      public Text content()
      Returns the value of the content record component.
      Returns:
      the value of the content record component
    • signature

      public ChatMessageSignature signature()
      Returns the value of the signature record component.
      Returns:
      the value of the signature record component