37 lines
1.2 KiB
Java
37 lines
1.2 KiB
Java
/*
|
|
* 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<ClientGamePacketListener>
|
|
{
|
|
public static final StreamCodec<FriendlyByteBuf, ClientboundDeleteChatPacket> 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<ClientboundDeleteChatPacket> type() {
|
|
return GamePacketTypes.CLIENTBOUND_DELETE_CHAT;
|
|
}
|
|
|
|
@Override
|
|
public void handle(ClientGamePacketListener listener) {
|
|
listener.handleDeleteChat(this);
|
|
}
|
|
}
|
|
|