the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 16 lines 431 B view raw
1#pragma once 2 3#include "Packet.h" 4 5class GetInfoPacket : public Packet, public enable_shared_from_this<GetInfoPacket> 6{ 7public: 8 virtual void read(DataInputStream *dis); 9 virtual void write(DataOutputStream *dos); 10 virtual void handle(PacketListener *listener); 11 virtual int getEstimatedSize(); 12 13public: 14 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new GetInfoPacket()); } 15 virtual int getId() { return 254; } 16};