mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-28 05:35:40 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -1,25 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "Packet.h"
|
||||
|
||||
// 4J Added packet to update clients on the time for the host to finish doing something
|
||||
// 4J Added packet to update clients on the time for the host to finish doing
|
||||
// something
|
||||
|
||||
class UpdateProgressPacket : public Packet, public std::enable_shared_from_this<UpdateProgressPacket>
|
||||
{
|
||||
class UpdateProgressPacket
|
||||
: public Packet,
|
||||
public std::enable_shared_from_this<UpdateProgressPacket> {
|
||||
public:
|
||||
int m_percentage;
|
||||
|
||||
UpdateProgressPacket();
|
||||
UpdateProgressPacket(int percentage);
|
||||
|
||||
virtual void read(DataInputStream* dis);
|
||||
virtual void write(DataOutputStream* dos);
|
||||
virtual void handle(PacketListener* listener);
|
||||
virtual int getEstimatedSize();
|
||||
|
||||
public:
|
||||
int m_percentage;
|
||||
|
||||
UpdateProgressPacket();
|
||||
UpdateProgressPacket(int percentage);
|
||||
|
||||
virtual void read(DataInputStream *dis);
|
||||
virtual void write(DataOutputStream *dos);
|
||||
virtual void handle(PacketListener *listener);
|
||||
virtual int getEstimatedSize();
|
||||
|
||||
public:
|
||||
static std::shared_ptr<Packet> create() { return std::shared_ptr<Packet>(new UpdateProgressPacket()); }
|
||||
virtual int getId() { return 156; }
|
||||
static std::shared_ptr<Packet> create() {
|
||||
return std::shared_ptr<Packet>(new UpdateProgressPacket());
|
||||
}
|
||||
virtual int getId() { return 156; }
|
||||
};
|
||||
Reference in New Issue
Block a user