Record Class ClientboundPlayerChatHeaderPacket
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundPlayerChatHeaderPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public record ClientboundPlayerChatHeaderPacket(SignedMessageHeader header, MessageSignature headerSignature, byte[] bodyDigest)
extends Record
implements Packet<ClientGamePacketListener>
-
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
ConstructorDescriptionClientboundPlayerChatHeaderPacket
(SignedMessageHeader header, MessageSignature headerSignature, byte[] bodyDigest) Creates an instance of aClientboundPlayerChatHeaderPacket
record class.ClientboundPlayerChatHeaderPacket
(FriendlyByteBuf p_241327_) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns the value of thebodyDigest
record component.final boolean
Indicates whether some other object is "equal to" this one.void
handle
(ClientGamePacketListener p_241550_) 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.void
write
(FriendlyByteBuf p_241388_) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
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
-
ClientboundPlayerChatHeaderPacket
-
ClientboundPlayerChatHeaderPacket
-
ClientboundPlayerChatHeaderPacket
public ClientboundPlayerChatHeaderPacket(SignedMessageHeader header, MessageSignature headerSignature, byte[] bodyDigest) Creates an instance of aClientboundPlayerChatHeaderPacket
record class.- Parameters:
header
- the value for theheader
record componentheaderSignature
- the value for theheaderSignature
record componentbodyDigest
- the value for thebodyDigest
record component
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
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)
. -
header
Returns the value of theheader
record component.- Returns:
- the value of the
header
record component
-
headerSignature
Returns the value of theheaderSignature
record component.- Returns:
- the value of the
headerSignature
record component
-
bodyDigest
public byte[] bodyDigest()Returns the value of thebodyDigest
record component.- Returns:
- the value of the
bodyDigest
record component
-