net.minecraft.network.packet.c2s.play

public class PlayerActionC2SPacket

implements Packet<ServerPlayPacketListener>

net.minecraft.network.protocol.game.ServerboundPlayerActionPacket
net.minecraft.class_2846
net.minecraft.network.packet.c2s.play.PlayerActionC2SPacket

Field summary

Modifier and TypeField
public static final PacketCodec<PacketByteBuf, PlayerActionC2SPacket>
STREAM_CODEC
field_48207
CODEC
private final BlockPos
pos
field_12967
pos
private final Direction
direction
field_12965
direction
private final PlayerActionC2SPacket$Action
action
field_12966
action
private final int
sequence
field_38048
sequence

Constructor summary

ModifierConstructor
public (PlayerActionC2SPacket$Action action, BlockPos pos, Direction direction, int sequence)
public (PlayerActionC2SPacket$Action action, BlockPos pos, Direction direction)
private (PacketByteBuf buf)

Method summary

Modifier and TypeMethod
private void
write(FriendlyByteBuf output)
method_55988(class_2540 arg0)
write(PacketByteBuf buf)
public PacketType<PlayerActionC2SPacket>
type()
method_65080()
getPacketType()
public void
handle(ServerGamePacketListener listener)
method_12361(class_2792 arg0)
apply(ServerPlayPacketListener arg0)
public BlockPos
getPos()
method_12362()
getPos()
public Direction
getDirection()
method_12360()
getDirection()
public PlayerActionC2SPacket$Action
getAction()
method_12363()
getAction()
public int
getSequence()
method_42079()
getSequence()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)