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

35 lines
945 B
C++

#pragma once
// FUCKING KISS ALREADY i love girls i love amy is the best i love
#include <memory>
#include "Packet.h"
#include "minecraft/network/packet/Packet.h"
class ServerSettingsChangedPacket
: public Packet,
public std::enable_shared_from_this<ServerSettingsChangedPacket> {
public:
static const int HOST_DIFFICULTY;
static const int HOST_OPTIONS;
static const int HOST_IN_GAME_SETTINGS;
char action;
unsigned int data;
ServerSettingsChangedPacket();
~ServerSettingsChangedPacket();
ServerSettingsChangedPacket(char action, unsigned int data);
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<ServerSettingsChangedPacket>();
}
virtual int getId() { return 153; }
};