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 veintermediary net/minecraft/class_7618named net/minecraft/network/packet/s2c/play/MessageHeaderS2CPacketofficial aintermediary comp_939named headerofficial bintermediary comp_940named headerSignatureofficial cintermediary comp_941named bodyDigest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The field for thebodyDigestrecord component.private final MessageHeaderThe field for theheaderrecord component.private final MessageSignatureDataThe field for theheaderSignaturerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMessageHeaderS2CPacket(MessageHeader messageHeader, MessageSignatureData messageSignatureData, byte[] byte2) MessageHeaderS2CPacket(SignedMessage message) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) byte[]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.voidwrite(PacketByteBuf buf) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
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
-
MessageHeaderS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>Lve;<init>(Lsd;)Vintermediary <init>Lnet/minecraft/class_7618;<init>(Lnet/minecraft/class_7471;)Vnamed <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;)Vintermediary <init>Lnet/minecraft/class_7618;<init>(Lnet/minecraft/class_2540;)Vnamed <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:
writein interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLtc;a(Lqx;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLve;a(Ltf;)Vintermediary method_44890Lnet/minecraft/class_7618;method_44890(Lnet/minecraft/class_2602;)Vnamed applyLnet/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 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
-