Record Class MessageHeaderS2CPacket
java.lang.Object
java.lang.Record
net.minecraft.network.packet.s2c.play.MessageHeaderS2CPacket
- Record Components:
header
-headerSignature
-bodyDigest
-
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public record MessageHeaderS2CPacket(MessageHeader header, MessageSignatureData headerSignature, byte[] bodyDigest)
extends Record
implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official ve
intermediary net/minecraft/class_7618
named net/minecraft/network/packet/s2c/play/MessageHeaderS2CPacket
official a
intermediary comp_939
named header
official b
intermediary comp_940
named headerSignature
official c
intermediary comp_941
named bodyDigest
-
Field Summary
Modifier and TypeFieldDescriptionprivate final byte[]
The field for thebodyDigest
record component.private final MessageHeader
The field for theheader
record component.private final MessageSignatureData
The field for theheaderSignature
record component. -
Constructor Summary
ConstructorDescriptionMessageHeaderS2CPacket
(MessageHeader messageHeader, MessageSignatureData messageSignatureData, byte[] byte2) MessageHeaderS2CPacket
(SignedMessage message) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientPlayPacketListener clientPlayPacketListener) byte[]
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.void
write
(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
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
-
MessageHeaderS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Lve;<init>(Lsd;)V
intermediary <init>
Lnet/minecraft/class_7618;<init>(Lnet/minecraft/class_7471;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/MessageHeaderS2CPacket;<init>(Lnet/minecraft/network/message/SignedMessage;)V
-
MessageHeaderS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Lve;<init>(Lqx;)V
intermediary <init>
Lnet/minecraft/class_7618;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/MessageHeaderS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
MessageHeaderS2CPacket
public MessageHeaderS2CPacket(MessageHeader messageHeader, MessageSignatureData messageSignatureData, byte[] byte2)
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Ltc;a(Lqx;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lve;a(Ltf;)V
intermediary method_44890
Lnet/minecraft/class_7618;method_44890(Lnet/minecraft/class_2602;)V
named apply
Lnet/minecraft/network/packet/s2c/play/MessageHeaderS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
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
-