Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
709 B · 37 lines
C++
at master
1234567891011121314151617181920212223242526272829303132333435363738#include "stdafx.h"#include <iostream>#include "InputOutputStream.h"#include "PacketListener.h"#include "ContainerClosePacket.h"
ContainerClosePacket::ContainerClosePacket(){ containerId = 0;}
ContainerClosePacket::ContainerClosePacket(int containerId) { this->containerId = containerId;}
void ContainerClosePacket::handle(PacketListener *listener) { listener->handleContainerClose(shared_from_this());}
void ContainerClosePacket::read(DataInputStream *dis) //throws IOException{ containerId = dis->readByte();}
void ContainerClosePacket::write(DataOutputStream *dos) //throws IOException { dos->writeByte(containerId);}
int ContainerClosePacket::getEstimatedSize() { return 1;}