summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-12-15 13:42:15 +0100
committerMattes D <github@xoft.cz>2013-12-15 13:42:15 +0100
commit4f92f18a8d97c749d25754a528cea2cc7a90dcf2 (patch)
treec2135e33e7ab30a548dcaac99e7f2cafc8bb2c4c /src/World.cpp
parentFixed pre 1.7 clients crashing. (diff)
parentcPlayer is using the broadcast functions. (diff)
downloadcuberite-4f92f18a8d97c749d25754a528cea2cc7a90dcf2.tar
cuberite-4f92f18a8d97c749d25754a528cea2cc7a90dcf2.tar.gz
cuberite-4f92f18a8d97c749d25754a528cea2cc7a90dcf2.tar.bz2
cuberite-4f92f18a8d97c749d25754a528cea2cc7a90dcf2.tar.lz
cuberite-4f92f18a8d97c749d25754a528cea2cc7a90dcf2.tar.xz
cuberite-4f92f18a8d97c749d25754a528cea2cc7a90dcf2.tar.zst
cuberite-4f92f18a8d97c749d25754a528cea2cc7a90dcf2.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 9ec389be9..35887c07d 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -1813,6 +1813,15 @@ void cWorld::BroadcastDestroyEntity(const cEntity & a_Entity, const cClientHandl
+void cWorld::BroadcastEntityEffect(const cEntity & a_Entity, int a_EffectID, int a_Amplifier, short a_Duration, const cClientHandle * a_Exclude)
+{
+ m_ChunkMap->BroadcastEntityEffect(a_Entity, a_EffectID, a_Amplifier, a_Duration, a_Exclude);
+}
+
+
+
+
+
void cWorld::BroadcastEntityEquipment(const cEntity & a_Entity, short a_SlotNum, const cItem & a_Item, const cClientHandle * a_Exclude)
{
m_ChunkMap->BroadcastEntityEquipment(a_Entity, a_SlotNum, a_Item, a_Exclude);
@@ -1911,6 +1920,15 @@ void cWorld::BroadcastPlayerListItem (const cPlayer & a_Player, bool a_IsOnline,
+void cWorld::BroadcastRemoveEntityEffect(const cEntity & a_Entity, int a_EffectID, const cClientHandle * a_Exclude)
+{
+ m_ChunkMap->BroadcastRemoveEntityEffect(a_Entity, a_EffectID, a_Exclude);
+}
+
+
+
+
+
void cWorld::BroadcastSoundEffect(const AString & a_SoundName, int a_SrcX, int a_SrcY, int a_SrcZ, float a_Volume, float a_Pitch, const cClientHandle * a_Exclude)
{
m_ChunkMap->BroadcastSoundEffect(a_SoundName, a_SrcX, a_SrcY, a_SrcZ, a_Volume, a_Pitch, a_Exclude);