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