From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.World/SetEntityDataPacket.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Minecraft.World/SetEntityDataPacket.h (limited to 'Minecraft.World/SetEntityDataPacket.h') diff --git a/Minecraft.World/SetEntityDataPacket.h b/Minecraft.World/SetEntityDataPacket.h new file mode 100644 index 00000000..1b31aa4c --- /dev/null +++ b/Minecraft.World/SetEntityDataPacket.h @@ -0,0 +1,31 @@ +#pragma once +using namespace std; + +#include "Packet.h" +#include "SynchedEntityData.h" + +class SetEntityDataPacket : public Packet, public enable_shared_from_this +{ +public: + int id; + +private: + vector > *packedItems; + +public: + SetEntityDataPacket(); + ~SetEntityDataPacket(); + SetEntityDataPacket(int id, shared_ptr, bool notJustDirty); + + virtual void read(DataInputStream *dis); + virtual void write(DataOutputStream *dos); + virtual void handle(PacketListener *listener); + virtual int getEstimatedSize(); + virtual bool isAync(); + + vector > *getUnpackedData(); + +public: + static shared_ptr create() { return shared_ptr(new SetEntityDataPacket()); } + virtual int getId() { return 40; } +}; \ No newline at end of file -- cgit v1.2.3