net.minecraft.network.packet.s2c.common

public record StoreCookieS2CPacket

implements Packet<ClientCommonPacketListener>

net.minecraft.network.protocol.common.ClientboundStoreCookiePacket
net.minecraft.class_9150
net.minecraft.network.packet.s2c.common.StoreCookieS2CPacket

Field summary

Modifier and TypeField
private final Identifier
key
comp_2238
key
private final byte[]
payload
comp_2239
payload
public static final PacketCodec<PacketByteBuf, StoreCookieS2CPacket>
STREAM_CODEC
field_48627
CODEC
private static final int
MAX_PAYLOAD_SIZE
field_48628
MAX_COOKIE_LENGTH
public static final PacketCodec<io.netty.buffer.ByteBuf, byte[]>
PAYLOAD_STREAM_CODEC
field_49011
COOKIE_PACKET_CODEC

Constructor summary

ModifierConstructor
private (PacketByteBuf buf)
public (Identifier key, byte[] payload)

Method summary

Modifier and TypeMethod
private void
write(FriendlyByteBuf output)
method_56467(class_2540 arg0)
write(PacketByteBuf buf)
public PacketType<StoreCookieS2CPacket>
type()
method_65080()
getPacketType()
public void
handle(ClientCommonPacketListener listener)
method_56468(class_8705 arg0)
apply(ClientCommonPacketListener arg0)
public Identifier
key()
comp_2238()
key()
public byte[]
payload()
comp_2239()
payload()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)