#pragma once #include #include #include #include #include "Packet.h" #include "minecraft/network/packet/Packet.h" class AwardStatPacket : public Packet, public std::enable_shared_from_this { public: int statId; // 4J-JEV: Changed to allow for Durango events. protected: std::vector m_paramData; public: AwardStatPacket(); AwardStatPacket(int statId, int count); AwardStatPacket(int statId, std::vector& paramData); ~AwardStatPacket(); virtual void handle(PacketListener* listener); virtual void read(DataInputStream* dis); virtual void write(DataOutputStream* dos); virtual int getEstimatedSize(); virtual bool isAync(); static std::shared_ptr create() { return std::make_shared(); } virtual int getId() { return 200; } public: // 4J-JEV: New getters to help prevent unsafe access int getCount(); std::vector getParamData(); };