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