mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-19 20:02:07 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -1,25 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "Packet.h"
|
||||
|
||||
class SetSpawnPositionPacket : public Packet, public std::enable_shared_from_this<SetSpawnPositionPacket>
|
||||
{
|
||||
class SetSpawnPositionPacket
|
||||
: public Packet,
|
||||
public std::enable_shared_from_this<SetSpawnPositionPacket> {
|
||||
public:
|
||||
int x, y, z;
|
||||
int x, y, z;
|
||||
|
||||
SetSpawnPositionPacket();
|
||||
SetSpawnPositionPacket(int x, int y, int z);
|
||||
SetSpawnPositionPacket();
|
||||
SetSpawnPositionPacket(int x, int y, int z);
|
||||
|
||||
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);
|
||||
virtual bool isAync();
|
||||
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);
|
||||
virtual bool isAync();
|
||||
|
||||
public:
|
||||
static std::shared_ptr<Packet> create() { return std::shared_ptr<Packet>(new SetSpawnPositionPacket()); }
|
||||
virtual int getId() { return 6; }
|
||||
static std::shared_ptr<Packet> create() {
|
||||
return std::shared_ptr<Packet>(new SetSpawnPositionPacket());
|
||||
}
|
||||
virtual int getId() { return 6; }
|
||||
};
|
||||
Reference in New Issue
Block a user