the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 36 lines 845 B view raw
1#pragma once 2using namespace std; 3 4#include "Packet.h" 5 6class CompoundTag; 7 8class TileEntityDataPacket : public Packet, public enable_shared_from_this<TileEntityDataPacket> 9{ 10public: 11 static const int TYPE_MOB_SPAWNER = 1; 12 static const int TYPE_ADV_COMMAND = 2; 13 static const int TYPE_BEACON = 3; 14 static const int TYPE_SKULL = 4; 15 16 int x, y, z; 17 int type; 18 CompoundTag *tag; 19 20private: 21 void _init(); 22 23public: 24 TileEntityDataPacket(); 25 ~TileEntityDataPacket(); 26 TileEntityDataPacket(int x, int y, int z, int type, CompoundTag *tag); 27 28 virtual void read(DataInputStream *dis); 29 virtual void write(DataOutputStream *dos); 30 virtual void handle(PacketListener *listener); 31 virtual int getEstimatedSize(); 32 33public: 34 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new TileEntityDataPacket()); } 35 virtual int getId() { return 132; } 36};