#pragma once #include "Packet.h" class SetEquippedItemPacket : public Packet, public std::enable_shared_from_this { public: int entity; int slot; private: // 4J Stu - Brought forward from 1.3 to fix #64688 - Customer Encountered: // TU7: Content: Art: Aura of enchanted item is not displayed for other // players in online game std::shared_ptr item; public: SetEquippedItemPacket(); SetEquippedItemPacket(int entity, int slot, std::shared_ptr item); virtual void read(DataInputStream* dis); virtual void write(DataOutputStream* dos); virtual void handle(PacketListener* listener); virtual int getEstimatedSize(); virtual bool canBeInvalidated(); virtual bool isInvalidatedBy(std::shared_ptr packet); // 4J Stu - Brought forward from 1.3 to fix #64688 - Customer Encountered: // TU7: Content: Art: Aura of enchanted item is not displayed for other // players in online game std::shared_ptr getItem(); public: static std::shared_ptr create() { return std::shared_ptr(new SetEquippedItemPacket()); } virtual int getId() { return 5; } };