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
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
ConstructorsConstructorDescriptionClientboundPlayerChatHeaderPacket(SignedMessageHeader header, MessageSignature headerSignature, byte[] bodyDigest) Creates an instance of aClientboundPlayerChatHeaderPacketrecord class.ClientboundPlayerChatHeaderPacket(FriendlyByteBuf p_241327_) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the value of thebodyDigestrecord component.final booleanIndicates whether some other object is "equal to" this one.voidhandle(ClientGamePacketListener p_241550_) 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.voidwrite(FriendlyByteBuf p_241388_) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
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
-
ClientboundPlayerChatHeaderPacket
-
ClientboundPlayerChatHeaderPacket
-
ClientboundPlayerChatHeaderPacket
public ClientboundPlayerChatHeaderPacket(SignedMessageHeader header, MessageSignature headerSignature, byte[] bodyDigest) Creates an instance of aClientboundPlayerChatHeaderPacketrecord class.- Parameters:
header- the value for theheaderrecord componentheaderSignature- the value for theheaderSignaturerecord componentbodyDigest- the value for thebodyDigestrecord component
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein 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 theheaderrecord component.- Returns:
- the value of the
headerrecord component
-
headerSignature
Returns the value of theheaderSignaturerecord component.- Returns:
- the value of the
headerSignaturerecord component
-
bodyDigest
public byte[] bodyDigest()Returns the value of thebodyDigestrecord component.- Returns:
- the value of the
bodyDigestrecord component
-