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 TeleportEntityPacket : public Packet, public enable_shared_from_this<TeleportEntityPacket>
7{
8public:
9 int id;
10 int x, y, z;
11 byte yRot, xRot;
12
13 TeleportEntityPacket();
14 TeleportEntityPacket(shared_ptr<Entity> e);
15 TeleportEntityPacket(int id, int x, int y, int z, byte yRot, byte xRot);
16
17 virtual void read(DataInputStream *dis);
18 virtual void write(DataOutputStream *dos);
19 virtual void handle(PacketListener *listener);
20 virtual int getEstimatedSize();
21 virtual bool canBeInvalidated();
22 virtual bool isInvalidatedBy(shared_ptr<Packet> packet);
23
24public:
25 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new TeleportEntityPacket()); }
26 virtual int getId() { return 34; }
27};