Package net.minecraft.network.encryption
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 rtintermediary net/minecraft/class_7471named net/minecraft/network/encryption/SignedChatMessageofficial aintermediary comp_804named signedContentofficial bintermediary comp_805named signatureofficial cintermediary comp_830named unsignedContent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChatMessageSignatureThe field for thesignaturerecord component.private final TextThe field for thesignedContentrecord component.The field for theunsignedContentrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSignedChatMessage(Text text, ChatMessageSignature chatMessageSignature, Optional<Text> optional) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static SignedChatMessagemethod_44126(String string, ChatMessageSignature chatMessageSignature) static SignedChatMessagemethod_44127(Text text) static SignedChatMessagemethod_44128(Text text, ChatMessageSignature chatMessageSignature) method_44129(Text text) Returns the value of thesignaturerecord component.Returns the value of thesignedContentrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunsignedContentrecord component.booleanbooleanverify(PlayerPublicKey playerPublicKey)
-
Field Details
-
signedContent
The field for thesignedContentrecord component. -
signature
The field for thesignaturerecord component. -
unsignedContent
The field for theunsignedContentrecord component.
-
-
Constructor Details
-
SignedChatMessage
public SignedChatMessage(Text text, ChatMessageSignature chatMessageSignature, Optional<Text> optional)
-
-
Method Details
-
method_44128
- Mappings:
Namespace Name Mixin selector official aLrt;a(Lrl;Lrq;)Lrt;intermediary method_44128Lnet/minecraft/class_7471;method_44128(Lnet/minecraft/class_2561;Lnet/minecraft/class_7469;)Lnet/minecraft/class_7471;named method_44128Lnet/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 aLrt;a(Ljava/lang/String;Lrq;)Lrt;intermediary method_44126Lnet/minecraft/class_7471;method_44126(Ljava/lang/String;Lnet/minecraft/class_7469;)Lnet/minecraft/class_7471;named method_44126Lnet/minecraft/network/encryption/SignedChatMessage;method_44126(Ljava/lang/String;Lnet/minecraft/network/encryption/ChatMessageSignature;)Lnet/minecraft/network/encryption/SignedChatMessage;
-
method_44127
- Mappings:
Namespace Name Mixin selector official aLrt;a(Lrl;)Lrt;intermediary method_44127Lnet/minecraft/class_7471;method_44127(Lnet/minecraft/class_2561;)Lnet/minecraft/class_7471;named method_44127Lnet/minecraft/network/encryption/SignedChatMessage;method_44127(Lnet/minecraft/text/Text;)Lnet/minecraft/network/encryption/SignedChatMessage;
-
method_44129
- Mappings:
Namespace Name Mixin selector official bLrt;b(Lrl;)Lrt;intermediary method_44129Lnet/minecraft/class_7471;method_44129(Lnet/minecraft/class_2561;)Lnet/minecraft/class_7471;named method_44129Lnet/minecraft/network/encryption/SignedChatMessage;method_44129(Lnet/minecraft/text/Text;)Lnet/minecraft/network/encryption/SignedChatMessage;
-
verify
- Throws:
SignatureException- Mappings:
Namespace Name Mixin selector official aLrt;a(Ljava/security/Signature;)Zintermediary method_43868Lnet/minecraft/class_7471;method_43868(Ljava/security/Signature;)Znamed verifyLnet/minecraft/network/encryption/SignedChatMessage;verify(Ljava/security/Signature;)Z
-
verify
- Mappings:
Namespace Name Mixin selector official aLrt;a(Lbsu;)Zintermediary method_43867Lnet/minecraft/class_7471;method_43867(Lnet/minecraft/class_7428;)Znamed verifyLnet/minecraft/network/encryption/SignedChatMessage;verify(Lnet/minecraft/network/encryption/PlayerPublicKey;)Z
-
method_44125
- Mappings:
Namespace Name Mixin selector official aLrt;a()Lrl;intermediary method_44125Lnet/minecraft/class_7471;method_44125()Lnet/minecraft/class_2561;named method_44125Lnet/minecraft/network/encryption/SignedChatMessage;method_44125()Lnet/minecraft/text/Text;
-
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). -
signedContent
Returns the value of thesignedContentrecord component.- Returns:
- the value of the
signedContentrecord component
-
signature
Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-
unsignedContent
Returns the value of theunsignedContentrecord component.- Returns:
- the value of the
unsignedContentrecord component
-