the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3
4#include "Packet.h"
5
6class AnimatePacket : public Packet, public enable_shared_from_this<AnimatePacket>
7{
8public:
9 static const int SWING = 1;
10 static const int HURT = 2;
11 static const int WAKE_UP = 3;
12 static const int RESPAWN = 4;
13 static const int EAT = 5; // 1.8.2
14 static const int CRITICAL_HIT = 6;
15 static const int MAGIC_CRITICAL_HIT = 7;
16
17 int id;
18 int action;
19
20 AnimatePacket();
21 AnimatePacket(shared_ptr<Entity> e, int action);
22
23 virtual void read(DataInputStream *dis);
24 virtual void write(DataOutputStream *dos);
25 virtual void handle(PacketListener *listener);
26 virtual int getEstimatedSize();
27
28public:
29 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new AnimatePacket()); }
30 virtual int getId() { return 18; }
31};