Record Class SignedChatMessage

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

public record SignedChatMessage(Text signedContent, ChatMessageSignature signature, Optional<Text> unsignedContent) extends Record
Mappings:
Namespace Name
official rt
intermediary net/minecraft/class_7471
named net/minecraft/network/encryption/SignedChatMessage
official a
intermediary comp_804
named signedContent
official b
intermediary comp_805
named signature
official c
intermediary comp_830
named unsignedContent
  • Field Details

  • Constructor Details

  • Method Details

    • method_44128

      public static SignedChatMessage method_44128(Text text, ChatMessageSignature chatMessageSignature)
      Mappings:
      Namespace Name Mixin selector
      official a Lrt;a(Lrl;Lrq;)Lrt;
      intermediary method_44128 Lnet/minecraft/class_7471;method_44128(Lnet/minecraft/class_2561;Lnet/minecraft/class_7469;)Lnet/minecraft/class_7471;
      named method_44128 Lnet/minecraft/network/encryption/SignedChatMessage;method_44128(Lnet/minecraft/text/Text;Lnet/minecraft/network/encryption/ChatMessageSignature;)Lnet/minecraft/network/encryption/SignedChatMessage;
    • method_44126

      public static SignedChatMessage method_44126(String string, ChatMessageSignature chatMessageSignature)
      Mappings:
      Namespace Name Mixin selector
      official a Lrt;a(Ljava/lang/String;Lrq;)Lrt;
      intermediary method_44126 Lnet/minecraft/class_7471;method_44126(Ljava/lang/String;Lnet/minecraft/class_7469;)Lnet/minecraft/class_7471;
      named method_44126 Lnet/minecraft/network/encryption/SignedChatMessage;method_44126(Ljava/lang/String;Lnet/minecraft/network/encryption/ChatMessageSignature;)Lnet/minecraft/network/encryption/SignedChatMessage;
    • method_44127

      public static SignedChatMessage method_44127(Text text)
      Mappings:
      Namespace Name Mixin selector
      official a Lrt;a(Lrl;)Lrt;
      intermediary method_44127 Lnet/minecraft/class_7471;method_44127(Lnet/minecraft/class_2561;)Lnet/minecraft/class_7471;
      named method_44127 Lnet/minecraft/network/encryption/SignedChatMessage;method_44127(Lnet/minecraft/text/Text;)Lnet/minecraft/network/encryption/SignedChatMessage;
    • method_44129

      public SignedChatMessage method_44129(Text text)
      Mappings:
      Namespace Name Mixin selector
      official b Lrt;b(Lrl;)Lrt;
      intermediary method_44129 Lnet/minecraft/class_7471;method_44129(Lnet/minecraft/class_2561;)Lnet/minecraft/class_7471;
      named method_44129 Lnet/minecraft/network/encryption/SignedChatMessage;method_44129(Lnet/minecraft/text/Text;)Lnet/minecraft/network/encryption/SignedChatMessage;
    • verify

      public boolean verify(Signature signature) throws SignatureException
      Throws:
      SignatureException
      Mappings:
      Namespace Name Mixin selector
      official a Lrt;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 playerPublicKey)
      Mappings:
      Namespace Name Mixin selector
      official a Lrt;a(Lbsu;)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
    • method_44125

      public Text method_44125()
      Mappings:
      Namespace Name Mixin selector
      official a Lrt;a()Lrl;
      intermediary method_44125 Lnet/minecraft/class_7471;method_44125()Lnet/minecraft/class_2561;
      named method_44125 Lnet/minecraft/network/encryption/SignedChatMessage;method_44125()Lnet/minecraft/text/Text;
    • 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.
    • signedContent

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

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

      public Optional<Text> unsignedContent()
      Returns the value of the unsignedContent record component.
      Returns:
      the value of the unsignedContent record component