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