the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3
4#include "Packet.h"
5
6class Level;
7
8class BlockRegionUpdatePacket : public Packet, public enable_shared_from_this<BlockRegionUpdatePacket>
9{
10public:
11 int x, y, z;
12 int xs, ys, zs;
13 byteArray buffer;
14 int levelIdx;
15 bool bIsFullChunk; // 4J Added
16
17private:
18 int size;
19
20public:
21 BlockRegionUpdatePacket();
22 ~BlockRegionUpdatePacket();
23 BlockRegionUpdatePacket(int x, int y, int z, int xs, int ys, int zs, Level *level);
24
25 virtual void read(DataInputStream *dis);
26 virtual void write(DataOutputStream *dos);
27 virtual void handle(PacketListener *listener);
28 virtual int getEstimatedSize();
29
30public:
31 static shared_ptr<Packet> create() { return shared_ptr<Packet>(new BlockRegionUpdatePacket()); }
32 virtual int getId() { return 51; }
33};