/* * Decompiled with CFR 0.152. */ package net.minecraft.network.protocol.game; import net.minecraft.core.BlockPos; import net.minecraft.network.RegistryFriendlyByteBuf; 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; import net.minecraft.util.debug.DebugSubscription; public record ClientboundDebugBlockValuePacket(BlockPos blockPos, DebugSubscription.Update update) implements Packet { public static final StreamCodec STREAM_CODEC = StreamCodec.composite(BlockPos.STREAM_CODEC, ClientboundDebugBlockValuePacket::blockPos, DebugSubscription.Update.STREAM_CODEC, ClientboundDebugBlockValuePacket::update, ClientboundDebugBlockValuePacket::new); @Override public PacketType type() { return GamePacketTypes.CLIENTBOUND_DEBUG_BLOCK_VALUE; } @Override public void handle(ClientGamePacketListener listener) { listener.handleDebugBlockValue(this); } }