the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 52 lines 801 B view raw
1#include "stdafx.h" 2#include <iostream> 3#include "InputOutputStream.h" 4#include "net.minecraft.world.item.h" 5#include "PacketListener.h" 6#include "XZPacket.h" 7 8 9 10const int XZPacket::STRONGHOLD = 0; 11 12XZPacket::~XZPacket() 13{ 14} 15 16XZPacket::XZPacket() 17{ 18 action = STRONGHOLD; 19 x = 0; 20 z = 0; 21} 22 23XZPacket::XZPacket(char action, int x, int z) 24{ 25 this->action = action; 26 this->x = x; 27 this->z = z; 28} 29 30void XZPacket::handle(PacketListener *listener) 31{ 32 listener->handleXZ(shared_from_this()); 33} 34 35void XZPacket::read(DataInputStream *dis) //throws IOException 36{ 37 action = dis->read(); 38 x = dis->readInt(); 39 z = dis->readInt(); 40} 41 42void XZPacket::write(DataOutputStream *dos) // throws IOException 43{ 44 dos->write(action); 45 dos->writeInt(x); 46 dos->writeInt(z); 47} 48 49int XZPacket::getEstimatedSize() 50{ 51 return 10; 52}