diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-15 10:51:46 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-15 10:51:46 +0100 |
commit | c56af9a214fad89b5d6e119fa830cbdc6c6f5456 (patch) | |
tree | a352db7c045e11e45a4420897b3eebeda58f88a2 /src/World.cpp | |
parent | Merge pull request #431 from mc-server/Entity_Effects (diff) | |
download | cuberite-c56af9a214fad89b5d6e119fa830cbdc6c6f5456.tar cuberite-c56af9a214fad89b5d6e119fa830cbdc6c6f5456.tar.gz cuberite-c56af9a214fad89b5d6e119fa830cbdc6c6f5456.tar.bz2 cuberite-c56af9a214fad89b5d6e119fa830cbdc6c6f5456.tar.lz cuberite-c56af9a214fad89b5d6e119fa830cbdc6c6f5456.tar.xz cuberite-c56af9a214fad89b5d6e119fa830cbdc6c6f5456.tar.zst cuberite-c56af9a214fad89b5d6e119fa830cbdc6c6f5456.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.cpp | 18 |
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); |