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
Modifier and TypeFieldDescriptionprivate final byte[]
The field for thebodyDigest
record component.private final SignedMessageHeader
The field for theheader
record component.private final MessageSignature
The field for theheaderSignature
record component. -
Constructor Summary
ConstructorDescriptionHeader
(SignedMessageHeader header, MessageSignature headerSignature, byte[] bodyDigest) Creates an instance of aHeader
record class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns the value of thebodyDigest
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.header()
Returns the value of theheader
record component.Returns the value of theheaderSignature
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
header
The field for theheader
record component. -
headerSignature
The field for theheaderSignature
record component. -
bodyDigest
private final byte[] bodyDigestThe field for thebodyDigest
record component.
-
-
Constructor Details
-
Header
Creates an instance of aHeader
record class.- Parameters:
header
- the value for theheader
record componentheaderSignature
- the value for theheaderSignature
record componentbodyDigest
- the value for thebodyDigest
record component
-
-
Method Details
-
header
Returns the value of theheader
record component.- Specified by:
header
in interfaceLoggedChatMessageLink
- Returns:
- the value of the
header
record component
-
headerSignature
Returns the value of theheaderSignature
record component.- Specified by:
headerSignature
in interfaceLoggedChatMessageLink
- Returns:
- the value of the
headerSignature
record component
-
bodyDigest
public byte[] bodyDigest()Returns the value of thebodyDigest
record component.- Specified by:
bodyDigest
in interfaceLoggedChatMessageLink
- Returns:
- the value of the
bodyDigest
record 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)
.
-