the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 37 lines 709 B view raw
1#include "stdafx.h" 2#include <iostream> 3#include "InputOutputStream.h" 4#include "PacketListener.h" 5#include "ContainerClosePacket.h" 6 7 8 9ContainerClosePacket::ContainerClosePacket() 10{ 11 containerId = 0; 12} 13 14ContainerClosePacket::ContainerClosePacket(int containerId) 15{ 16 this->containerId = containerId; 17} 18 19void ContainerClosePacket::handle(PacketListener *listener) 20{ 21 listener->handleContainerClose(shared_from_this()); 22} 23 24void ContainerClosePacket::read(DataInputStream *dis) //throws IOException 25{ 26 containerId = dis->readByte(); 27} 28 29void ContainerClosePacket::write(DataOutputStream *dos) //throws IOException 30{ 31 dos->writeByte(containerId); 32} 33 34int ContainerClosePacket::getEstimatedSize() 35{ 36 return 1; 37}