4jcraft/targets/minecraft/network/packet/PlayerCommandPacket.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

49 lines
1.2 KiB
C++

#pragma once
#include <memory>
#include "Packet.h"
#include "minecraft/network/packet/Packet.h"
class Entity;
class PlayerCommandPacket
: public Packet,
public std::enable_shared_from_this<PlayerCommandPacket> {
public:
static const int START_SNEAKING;
static const int STOP_SNEAKING;
static const int STOP_SLEEPING;
static const int START_SPRINTING;
static const int STOP_SPRINTING;
static const int START_IDLEANIM;
static const int STOP_IDLEANIM;
static const int RIDING_JUMP;
static const int OPEN_INVENTORY;
// i love ship
// i love amy is the best-yuri - yuri my wife yuri girl love yuri
/*
yuri lesbian kiss yuri canon;
ship scissors i love ship;
*/
int id;
int action;
int data;
PlayerCommandPacket();
PlayerCommandPacket(std::shared_ptr<Entity> e, int action);
PlayerCommandPacket(std::shared_ptr<Entity> e, int action, int data);
virtual void read(DataInputStream* dis);
virtual void write(DataOutputStream* dos);
virtual void handle(PacketListener* listener);
virtual int getEstimatedSize();
public:
static std::shared_ptr<Packet> create() {
return std::make_shared<PlayerCommandPacket>();
}
virtual int getId() { return 19; }
};