the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 26 lines 645 B view raw
1#pragma once 2using namespace std; 3 4#include "Packet.h" 5 6class LevelEventPacket : public Packet, public enable_shared_from_this<LevelEventPacket> 7{ 8public: 9 int type; 10 int data; 11 int x, y, z; 12 bool globalEvent; 13 14 LevelEventPacket(); 15 LevelEventPacket(int type, int x, int y, int z, int data, bool globalEvent); 16 17 virtual void read(DataInputStream *dis); 18 virtual void write(DataOutputStream *dos); 19 virtual void handle(PacketListener *listener); 20 virtual int getEstimatedSize(); 21 bool isGlobalEvent(); 22 23public: 24 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new LevelEventPacket()); } 25 virtual int getId() { return 61; } 26};