mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-04 23:26:54 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -2,23 +2,26 @@
|
||||
|
||||
#include "Packet.h"
|
||||
|
||||
class ClientCommandPacket : public Packet, public std::enable_shared_from_this<ClientCommandPacket>
|
||||
{
|
||||
class ClientCommandPacket
|
||||
: public Packet,
|
||||
public std::enable_shared_from_this<ClientCommandPacket> {
|
||||
public:
|
||||
static const int LOGIN_COMPLETE = 0;
|
||||
static const int PERFORM_RESPAWN = 1;
|
||||
static const int LOGIN_COMPLETE = 0;
|
||||
static const int PERFORM_RESPAWN = 1;
|
||||
|
||||
int action;
|
||||
int action;
|
||||
|
||||
ClientCommandPacket();
|
||||
ClientCommandPacket(int action);
|
||||
ClientCommandPacket();
|
||||
ClientCommandPacket(int action);
|
||||
|
||||
void read(DataInputStream *dis);
|
||||
void write(DataOutputStream *dos);
|
||||
void handle(PacketListener *listener);
|
||||
int getEstimatedSize();
|
||||
void read(DataInputStream* dis);
|
||||
void write(DataOutputStream* dos);
|
||||
void handle(PacketListener* listener);
|
||||
int getEstimatedSize();
|
||||
|
||||
public:
|
||||
static std::shared_ptr<Packet> create() { return std::shared_ptr<Packet>(new ClientCommandPacket()); }
|
||||
virtual int getId() { return 205; }
|
||||
static std::shared_ptr<Packet> create() {
|
||||
return std::shared_ptr<Packet>(new ClientCommandPacket());
|
||||
}
|
||||
virtual int getId() { return 205; }
|
||||
};
|
||||
Reference in New Issue
Block a user