mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-28 01:30:46 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -1,27 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "Packet.h"
|
||||
|
||||
class TeleportEntityPacket : public Packet, public std::enable_shared_from_this<TeleportEntityPacket>
|
||||
{
|
||||
class TeleportEntityPacket
|
||||
: public Packet,
|
||||
public std::enable_shared_from_this<TeleportEntityPacket> {
|
||||
public:
|
||||
int id;
|
||||
int id;
|
||||
int x, y, z;
|
||||
uint8_t yRot, xRot;
|
||||
|
||||
TeleportEntityPacket();
|
||||
TeleportEntityPacket(std::shared_ptr<Entity> e);
|
||||
TeleportEntityPacket(int id, int x, int y, int z, uint8_t yRot, uint8_t xRot);
|
||||
TeleportEntityPacket();
|
||||
TeleportEntityPacket(std::shared_ptr<Entity> e);
|
||||
TeleportEntityPacket(int id, int x, int y, int z, uint8_t yRot,
|
||||
uint8_t xRot);
|
||||
|
||||
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 TeleportEntityPacket()); }
|
||||
virtual int getId() { return 34; }
|
||||
static std::shared_ptr<Packet> create() {
|
||||
return std::shared_ptr<Packet>(new TeleportEntityPacket());
|
||||
}
|
||||
virtual int getId() { return 34; }
|
||||
};
|
||||
Reference in New Issue
Block a user