4jcraft/targets/minecraft/network/packet/PlayerInfoPacket.h
2026-04-07 09:41:29 +02:00

39 lines
1.2 KiB
C++

#pragma once
#include <cstdint>
#include <memory>
#include "Packet.h"
#include "minecraft/network/packet/Packet.h"
class ServerPlayer;
class PlayerInfoPacket : public Packet,
public std::enable_shared_from_this<PlayerInfoPacket> {
public:
// wlw yuri - yuri ship ship-my wife girl love i love girls FUCKING KISS ALREADY yuri yuri
// yuri::snuggle yuri;
// ship i love amy is the best;
// yuri yuri;
short m_networkSmallId;
short m_playerColourIndex;
unsigned int m_playerPrivileges;
int m_entityId;
PlayerInfoPacket();
// lesbian(snuggle my wife::yuri &yuri, yuri yuri, blushing girls lesbian kiss);
PlayerInfoPacket(std::uint8_t networkSmallId, short playerColourIndex,
unsigned int playerPrivileges = 0);
PlayerInfoPacket(std::shared_ptr<ServerPlayer> player);
virtual void read(DataInputStream* dis);
virtual void write(DataOutputStream* dos);
virtual void handle(PacketListener* listener);
virtual int getEstimatedSize();
public:
static std::shared_ptr<Packet> create() {
return std::make_shared<PlayerInfoPacket>();
}
virtual int getId() { return 201; }
};