net.minecraft.network.packet.c2s.play

public record PlayerInteractBlockC2SPacket

implements Packet<ServerPlayPacketListener>

net.minecraft.network.protocol.game.ServerboundUseItemOnPacket
net.minecraft.class_2885
net.minecraft.network.packet.c2s.play.PlayerInteractBlockC2SPacket

Field summary

Modifier and TypeField
private final Hand
hand
comp_1_1634
hand
private final BlockHitResult
hitResult
comp_1_1635
blockHitResult
private final int
sequence
comp_1_1636
sequence
public static final PacketCodec<PacketByteBuf, PlayerInteractBlockC2SPacket>
STREAM_CODEC
field_48225
CODEC

Constructor summary

ModifierConstructor
public (Hand hand, BlockHitResult blockHitResult, int sequence)

Method summary

Modifier and TypeMethod
public PacketType<PlayerInteractBlockC2SPacket>
type()
method_65080()
getPacketType()
public void
handle(ServerGamePacketListener listener)
method_12547(class_2792 arg0)
apply(ServerPlayPacketListener arg0)
public Hand
hand()
comp_1_1634()
hand()
public BlockHitResult
hitResult()
comp_1_1635()
blockHitResult()
public int
sequence()
comp_1_1636()
sequence()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)