TU19: merge Minecraft.World/Network

This commit is contained in:
Tropical
2026-03-21 18:09:02 -05:00
parent 0f280b5ed3
commit 11a0440998
66 changed files with 1355 additions and 462 deletions

View File

@@ -0,0 +1,27 @@
#pragma once
#include "Packet.h"
class Objective;
class SetDisplayObjectivePacket
: public Packet,
public std::enable_shared_from_this<SetDisplayObjectivePacket> {
public:
int slot;
std::wstring objectiveName;
SetDisplayObjectivePacket();
SetDisplayObjectivePacket(int slot, Objective* objective);
void read(DataInputStream* dis);
void write(DataOutputStream* dos);
void handle(PacketListener* listener);
int getEstimatedSize();
public:
static std::shared_ptr<Packet> create() {
return std::shared_ptr<Packet>(new SetDisplayObjectivePacket());
}
virtual int getId() { return 208; }
};