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.
824 B · 47 lines
C++
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647#include "stdafx.h"#include <iostream>#include "InputOutputStream.h"#include "PacketListener.h"#include "SetCarriedItemPacket.h"
SetCarriedItemPacket::SetCarriedItemPacket() { slot = 0;}
SetCarriedItemPacket::SetCarriedItemPacket(int slot) { this->slot = slot;}
void SetCarriedItemPacket::read(DataInputStream *dis) //throws IOException{ slot = dis->readShort();}
void SetCarriedItemPacket::write(DataOutputStream *dos) //throws IOException { dos->writeShort(slot);}
void SetCarriedItemPacket::handle(PacketListener *listener) { listener->handleSetCarriedItem(shared_from_this());}
int SetCarriedItemPacket::getEstimatedSize() { return 2;}
bool SetCarriedItemPacket::canBeInvalidated() { return true;}
bool SetCarriedItemPacket::isInvalidatedBy(shared_ptr<Packet> packet){ return true;}