net.minecraft.network.packet.c2s.play

public class ClientCommandC2SPacket

implements Packet<ServerPlayPacketListener>

net.minecraft.network.protocol.game.ServerboundPlayerCommandPacket
net.minecraft.class_2848
net.minecraft.network.packet.c2s.play.ClientCommandC2SPacket

Field summary

Modifier and TypeField
public static final PacketCodec<PacketByteBuf, ClientCommandC2SPacket>
STREAM_CODEC
field_48208
CODEC
private final int
id
field_12977
entityId
private final ClientCommandC2SPacket$Mode
action
field_12978
mode
private final int
data
field_12976
mountJumpHeight

Constructor summary

ModifierConstructor
public (Entity entity, ClientCommandC2SPacket$Mode mode)
public (Entity entity, ClientCommandC2SPacket$Mode mode, int mountJumpHeight)
private (PacketByteBuf buf)

Method summary

Modifier and TypeMethod
private void
write(FriendlyByteBuf output)
method_55989(class_2540 arg0)
write(PacketByteBuf buf)
public PacketType<ClientCommandC2SPacket>
type()
method_65080()
getPacketType()
public void
handle(ServerGamePacketListener listener)
method_12364(class_2792 arg0)
apply(ServerPlayPacketListener arg0)
public int
getId()
method_36173()
getEntityId()
public ClientCommandC2SPacket$Mode
getAction()
method_12365()
getMode()
public int
getData()
method_12366()
getMountJumpHeight()
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)