diff options
Diffstat (limited to 'Minecraft.World/AddGlobalEntityPacket.h')
| -rw-r--r-- | Minecraft.World/AddGlobalEntityPacket.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Minecraft.World/AddGlobalEntityPacket.h b/Minecraft.World/AddGlobalEntityPacket.h new file mode 100644 index 00000000..80c10db2 --- /dev/null +++ b/Minecraft.World/AddGlobalEntityPacket.h @@ -0,0 +1,25 @@ +#pragma once + +#include "Packet.h" + +class AddGlobalEntityPacket : public Packet, public enable_shared_from_this<AddGlobalEntityPacket> +{ +public: + static const int LIGHTNING; + + int id; + int x, y, z; + int type; + + AddGlobalEntityPacket(); + AddGlobalEntityPacket(shared_ptr<Entity> e); + + 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 AddGlobalEntityPacket()); } + virtual int getId() { return 71; } +};
\ No newline at end of file |
