mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-11 19:53:52 +00:00
Initial commit
This commit is contained in:
parent
def8cb4153
commit
b691c43c44
19437 changed files with 4363922 additions and 0 deletions
33
Minecraft.World/BlockRegionUpdatePacket.h
Normal file
33
Minecraft.World/BlockRegionUpdatePacket.h
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#pragma once
|
||||
using namespace std;
|
||||
|
||||
#include "Packet.h"
|
||||
|
||||
class Level;
|
||||
|
||||
class BlockRegionUpdatePacket : public Packet, public enable_shared_from_this<BlockRegionUpdatePacket>
|
||||
{
|
||||
public:
|
||||
int x, y, z;
|
||||
int xs, ys, zs;
|
||||
byteArray buffer;
|
||||
int levelIdx;
|
||||
bool bIsFullChunk; // 4J Added
|
||||
|
||||
private:
|
||||
int size;
|
||||
|
||||
public:
|
||||
BlockRegionUpdatePacket();
|
||||
~BlockRegionUpdatePacket();
|
||||
BlockRegionUpdatePacket(int x, int y, int z, int xs, int ys, int zs, Level *level);
|
||||
|
||||
virtual void read(DataInputStream *dis);
|
||||
virtual void write(DataOutputStream *dos);
|
||||
virtual void handle(PacketListener *listener);
|
||||
virtual int getEstimatedSize();
|
||||
|
||||
public:
|
||||
static shared_ptr<Packet> create() { return shared_ptr<Packet>(new BlockRegionUpdatePacket()); }
|
||||
virtual int getId() { return 51; }
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue