Record Class LoggedChatMessageLink.Header
java.lang.Object
java.lang.Record
net.minecraft.client.multiplayer.chat.LoggedChatMessageLink.Header
- All Implemented Interfaces:
LoggedChatEvent,LoggedChatMessageLink
- Enclosing interface:
- LoggedChatMessageLink
public static record LoggedChatMessageLink.Header(SignedMessageHeader header, MessageSignature headerSignature, byte[] bodyDigest)
extends Record
implements LoggedChatMessageLink
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.multiplayer.chat.LoggedChatMessageLink
LoggedChatMessageLink.Header -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The field for thebodyDigestrecord component.private final SignedMessageHeaderThe field for theheaderrecord component.private final MessageSignatureThe field for theheaderSignaturerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionHeader(SignedMessageHeader header, MessageSignature headerSignature, byte[] bodyDigest) Creates an instance of aHeaderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the value of thebodyDigestrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.Returns the value of theheaderSignaturerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
header
The field for theheaderrecord component. -
headerSignature
The field for theheaderSignaturerecord component. -
bodyDigest
private final byte[] bodyDigestThe field for thebodyDigestrecord component.
-
-
Constructor Details
-
Header
Creates an instance of aHeaderrecord class.- Parameters:
header- the value for theheaderrecord componentheaderSignature- the value for theheaderSignaturerecord componentbodyDigest- the value for thebodyDigestrecord component
-
-
Method Details
-
header
Returns the value of theheaderrecord component.- Specified by:
headerin interfaceLoggedChatMessageLink- Returns:
- the value of the
headerrecord component
-
headerSignature
Returns the value of theheaderSignaturerecord component.- Specified by:
headerSignaturein interfaceLoggedChatMessageLink- Returns:
- the value of the
headerSignaturerecord component
-
bodyDigest
public byte[] bodyDigest()Returns the value of thebodyDigestrecord component.- Specified by:
bodyDigestin interfaceLoggedChatMessageLink- Returns:
- the value of the
bodyDigestrecord component
-
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).
-