the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 31 lines 839 B view raw
1#pragma once 2using namespace std; 3 4#include "Packet.h" 5 6class SetEntityMotionPacket : public Packet, public enable_shared_from_this<SetEntityMotionPacket> 7{ 8public: 9 int id; 10 int xa, ya, za; 11 bool useBytes; // 4J added 12 13private: 14 void _init(int id, double xd, double yd, double zd); 15 16public: 17 SetEntityMotionPacket(); 18 SetEntityMotionPacket(shared_ptr<Entity> e); 19 SetEntityMotionPacket(int id, double xd, double yd, double zd); 20 21 virtual void read(DataInputStream *dis); 22 virtual void write(DataOutputStream *dos); 23 virtual void handle(PacketListener *listener); 24 virtual int getEstimatedSize(); 25 virtual bool canBeInvalidated(); 26 virtual bool isInvalidatedBy(shared_ptr<Packet> packet); 27 28public: 29 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new SetEntityMotionPacket()); } 30 virtual int getId() { return 28; } 31};