mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-28 16:00:46 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -1,34 +1,35 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "Packet.h"
|
||||
|
||||
class AwardStatPacket : public Packet, public std::enable_shared_from_this<AwardStatPacket>
|
||||
{
|
||||
class AwardStatPacket : public Packet,
|
||||
public std::enable_shared_from_this<AwardStatPacket> {
|
||||
public:
|
||||
int statId;
|
||||
int statId;
|
||||
|
||||
// 4J-JEV: Changed to allow for Durango events.
|
||||
// 4J-JEV: Changed to allow for Durango events.
|
||||
protected:
|
||||
byteArray m_paramData;
|
||||
byteArray m_paramData;
|
||||
|
||||
public:
|
||||
AwardStatPacket();
|
||||
AwardStatPacket(int statId, int count);
|
||||
AwardStatPacket(int statId, byteArray paramData);
|
||||
~AwardStatPacket();
|
||||
AwardStatPacket();
|
||||
AwardStatPacket(int statId, int count);
|
||||
AwardStatPacket(int statId, byteArray paramData);
|
||||
~AwardStatPacket();
|
||||
|
||||
virtual void handle(PacketListener *listener);
|
||||
virtual void read(DataInputStream *dis);
|
||||
virtual void write(DataOutputStream *dos);
|
||||
virtual int getEstimatedSize();
|
||||
virtual bool isAync();
|
||||
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<Packet> create() { return std::shared_ptr<Packet>(new AwardStatPacket()); }
|
||||
virtual int getId() { return 200; }
|
||||
static std::shared_ptr<Packet> create() {
|
||||
return std::shared_ptr<Packet>(new AwardStatPacket());
|
||||
}
|
||||
virtual int getId() { return 200; }
|
||||
|
||||
public:
|
||||
// 4J-JEV: New getters to help prevent unsafe access
|
||||
int getCount();
|
||||
byteArray getParamData();
|
||||
// 4J-JEV: New getters to help prevent unsafe access
|
||||
int getCount();
|
||||
byteArray getParamData();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user