mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-16 20:01:56 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -1,31 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "Packet.h"
|
||||
|
||||
class SetEntityMotionPacket : public Packet, public std::enable_shared_from_this<SetEntityMotionPacket>
|
||||
{
|
||||
class SetEntityMotionPacket
|
||||
: public Packet,
|
||||
public std::enable_shared_from_this<SetEntityMotionPacket> {
|
||||
public:
|
||||
int id;
|
||||
int id;
|
||||
int xa, ya, za;
|
||||
bool useBytes; // 4J added
|
||||
bool useBytes; // 4J added
|
||||
|
||||
private:
|
||||
void _init(int id, double xd, double yd, double zd);
|
||||
void _init(int id, double xd, double yd, double zd);
|
||||
|
||||
public:
|
||||
SetEntityMotionPacket();
|
||||
SetEntityMotionPacket(std::shared_ptr<Entity> e);
|
||||
SetEntityMotionPacket(int id, double xd, double yd, double zd);
|
||||
SetEntityMotionPacket();
|
||||
SetEntityMotionPacket(std::shared_ptr<Entity> e);
|
||||
SetEntityMotionPacket(int id, double xd, double yd, double zd);
|
||||
|
||||
virtual void read(DataInputStream *dis);
|
||||
virtual void write(DataOutputStream *dos);
|
||||
virtual void handle(PacketListener *listener);
|
||||
virtual int getEstimatedSize();
|
||||
virtual bool canBeInvalidated();
|
||||
virtual void read(DataInputStream* dis);
|
||||
virtual void write(DataOutputStream* dos);
|
||||
virtual void handle(PacketListener* listener);
|
||||
virtual int getEstimatedSize();
|
||||
virtual bool canBeInvalidated();
|
||||
virtual bool isInvalidatedBy(std::shared_ptr<Packet> packet);
|
||||
|
||||
public:
|
||||
static std::shared_ptr<Packet> create() { return std::shared_ptr<Packet>(new SetEntityMotionPacket()); }
|
||||
virtual int getId() { return 28; }
|
||||
static std::shared_ptr<Packet> create() {
|
||||
return std::shared_ptr<Packet>(new SetEntityMotionPacket());
|
||||
}
|
||||
virtual int getId() { return 28; }
|
||||
};
|
||||
Reference in New Issue
Block a user