the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 30 lines 591 B view raw
1#pragma once 2 3// 4J ADDED THIS PACKET 4 5using namespace std; 6 7#include "Packet.h" 8 9class XZPacket : public Packet, public enable_shared_from_this<XZPacket> 10{ 11public: 12 static const int STRONGHOLD; 13 14 char action; 15 int x; 16 int z; 17 18 XZPacket(); 19 ~XZPacket(); 20 XZPacket(char action, int x, int z); 21 22 virtual void handle(PacketListener *listener); 23 virtual void read(DataInputStream *dis); 24 virtual void write(DataOutputStream *dos); 25 virtual int getEstimatedSize(); 26 27public: 28 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new XZPacket()); } 29 virtual int getId() { return 166; } 30};