mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 12:13:36 +00:00
32 lines
688 B
C++
32 lines
688 B
C++
#pragma once
|
|
|
|
// 4J ADDED THIS PACKET
|
|
|
|
#include <memory>
|
|
|
|
#include "Packet.h"
|
|
#include "minecraft/network/packet/Packet.h"
|
|
|
|
class XZPacket : public Packet, public std::enable_shared_from_this<XZPacket> {
|
|
public:
|
|
static const int STRONGHOLD;
|
|
|
|
char action;
|
|
int x;
|
|
int z;
|
|
|
|
XZPacket();
|
|
~XZPacket();
|
|
XZPacket(char action, int x, int z);
|
|
|
|
virtual void handle(PacketListener* listener);
|
|
virtual void read(DataInputStream* dis);
|
|
virtual void write(DataOutputStream* dos);
|
|
virtual int getEstimatedSize();
|
|
|
|
public:
|
|
static std::shared_ptr<Packet> create() {
|
|
return std::make_shared<XZPacket>();
|
|
}
|
|
virtual int getId() { return 166; }
|
|
}; |