summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-02-18 23:08:12 +0100
committerMattes D <github@xoft.cz>2014-02-18 23:08:12 +0100
commit98332c5b7662deb1f14792176414bc4b5f48301b (patch)
tree974477fd292b4b3dd44d0318bcab77770c890190 /src/Protocol/Protocol17x.cpp
parentProtoProxy: ignoring PolarSSL build files. (diff)
parentProperly exported and documented paintings (diff)
downloadcuberite-98332c5b7662deb1f14792176414bc4b5f48301b.tar
cuberite-98332c5b7662deb1f14792176414bc4b5f48301b.tar.gz
cuberite-98332c5b7662deb1f14792176414bc4b5f48301b.tar.bz2
cuberite-98332c5b7662deb1f14792176414bc4b5f48301b.tar.lz
cuberite-98332c5b7662deb1f14792176414bc4b5f48301b.tar.xz
cuberite-98332c5b7662deb1f14792176414bc4b5f48301b.tar.zst
cuberite-98332c5b7662deb1f14792176414bc4b5f48301b.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol17x.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index f7d13774d..7da19a14b 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -21,6 +21,7 @@ Implements the 1.7.x protocol classes:
#include "../Entities/ExpOrb.h"
#include "../Entities/Minecart.h"
#include "../Entities/FallingBlock.h"
+#include "../Entities/Painting.h"
#include "../Entities/Pickup.h"
#include "../Entities/Player.h"
#include "../Mobs/IncludeAllMonsters.h"
@@ -569,6 +570,20 @@ void cProtocol172::SendLogin(const cPlayer & a_Player, const cWorld & a_World)
+void cProtocol172::SendPaintingSpawn(const cPainting & a_Painting)
+{
+ cPacketizer Pkt(*this, 0x10); // Spawn Painting packet
+ Pkt.WriteVarInt(a_Painting.GetUniqueID());
+ Pkt.WriteString(a_Painting.GetName().c_str());
+ Pkt.WriteInt((int)a_Painting.GetPosX());
+ Pkt.WriteInt((int)a_Painting.GetPosY());
+ Pkt.WriteInt((int)a_Painting.GetPosZ());
+ Pkt.WriteInt(a_Painting.GetDirection());
+}
+
+
+
+
void cProtocol172::SendPickupSpawn(const cPickup & a_Pickup)
{