minecraft_25w45a_unobfuscated/net/minecraft/network/protocol/game/ClientboundGameTestHighlightPosPacket.java
2025-11-24 22:52:51 +03:00

32 lines
1.2 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* io.netty.buffer.ByteBuf
*/
package net.minecraft.network.protocol.game;
import io.netty.buffer.ByteBuf;
import net.minecraft.core.BlockPos;
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 ClientboundGameTestHighlightPosPacket(BlockPos absolutePos, BlockPos relativePos) implements Packet<ClientGamePacketListener>
{
public static final StreamCodec<ByteBuf, ClientboundGameTestHighlightPosPacket> STREAM_CODEC = StreamCodec.composite(BlockPos.STREAM_CODEC, ClientboundGameTestHighlightPosPacket::absolutePos, BlockPos.STREAM_CODEC, ClientboundGameTestHighlightPosPacket::relativePos, ClientboundGameTestHighlightPosPacket::new);
@Override
public PacketType<ClientboundGameTestHighlightPosPacket> type() {
return GamePacketTypes.CLIENTBOUND_GAME_TEST_HIGHLIGHT_POS;
}
@Override
public void handle(ClientGamePacketListener listener) {
listener.handleGameTestHighlightPos(this);
}
}