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.
871 B · 51 lines
C++
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051#include "stdafx.h"
#include "RotateHeadPacket.h"
RotateHeadPacket::RotateHeadPacket(){}
RotateHeadPacket::RotateHeadPacket(int id, char yHeadRot){ this->id = id; this->yHeadRot = yHeadRot;}
void RotateHeadPacket::read(DataInputStream *dis){ id = dis->readInt(); yHeadRot = dis->readByte();}
void RotateHeadPacket::write(DataOutputStream *dos){ dos->writeInt(id); dos->writeByte(yHeadRot);}
void RotateHeadPacket::handle(PacketListener *listener){ listener->handleRotateMob(shared_from_this());}
int RotateHeadPacket::getEstimatedSize(){ return 5;}
bool RotateHeadPacket::canBeInvalidated(){ return true;}
bool RotateHeadPacket::isInvalidatedBy(shared_ptr<Packet> packet){ shared_ptr<RotateHeadPacket> target = dynamic_pointer_cast<RotateHeadPacket>(packet); return target->id == id;}
bool RotateHeadPacket::isAync(){ return true;}