mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 06:03:37 +00:00
28 lines
695 B
C++
28 lines
695 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <memory>
|
|
|
|
#include "Packet.h"
|
|
#include "minecraft/network/packet/Packet.h"
|
|
|
|
class KickPlayerPacket : public Packet,
|
|
public std::enable_shared_from_this<KickPlayerPacket> {
|
|
public:
|
|
std::uint8_t m_networkSmallId;
|
|
|
|
KickPlayerPacket();
|
|
KickPlayerPacket(std::uint8_t networkSmallId);
|
|
|
|
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<KickPlayerPacket>();
|
|
}
|
|
virtual int getId() { return 159; }
|
|
};
|