/* * Decompiled with CFR 0.152. */ package net.minecraft.network.protocol.game; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.network.chat.MessageSignature; import net.minecraft.network.codec.StreamCodec; import net.minecraft.network.protocol.Packet; import net.minecraft.network.protocol.PacketType; import net.minecraft.network.protocol.game.ClientGamePacketListener; import net.minecraft.network.protocol.game.GamePacketTypes; public record ClientboundDeleteChatPacket(MessageSignature.Packed messageSignature) implements Packet { public static final StreamCodec STREAM_CODEC = Packet.codec(ClientboundDeleteChatPacket::write, ClientboundDeleteChatPacket::new); private ClientboundDeleteChatPacket(FriendlyByteBuf input) { this(MessageSignature.Packed.read(input)); } private void write(FriendlyByteBuf output) { MessageSignature.Packed.write(output, this.messageSignature); } @Override public PacketType type() { return GamePacketTypes.CLIENTBOUND_DELETE_CHAT; } @Override public void handle(ClientGamePacketListener listener) { listener.handleDeleteChat(this); } }