diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-14 18:19:56 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-14 18:19:56 +0100 |
commit | 123799a4e077298907905ab090fd01f532f7d1ef (patch) | |
tree | 45bb978732f6f65b27620a43ae02dc564f9f56d6 /src/ClientHandle.cpp | |
parent | Added SendEntityEffect and SendRemoveEntityEffect. Also a Player now gets the hunger effect when he has food poison. (diff) | |
download | cuberite-123799a4e077298907905ab090fd01f532f7d1ef.tar cuberite-123799a4e077298907905ab090fd01f532f7d1ef.tar.gz cuberite-123799a4e077298907905ab090fd01f532f7d1ef.tar.bz2 cuberite-123799a4e077298907905ab090fd01f532f7d1ef.tar.lz cuberite-123799a4e077298907905ab090fd01f532f7d1ef.tar.xz cuberite-123799a4e077298907905ab090fd01f532f7d1ef.tar.zst cuberite-123799a4e077298907905ab090fd01f532f7d1ef.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index f7e18974f..8a92e1344 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -1673,6 +1673,15 @@ void cClientHandle::SendEditSign(int a_BlockX, int a_BlockY, int a_BlockZ) +void cClientHandle::SendEntityEffect(const cEntity & a_Entity, int a_EffectID, int a_Amplifier, short a_Duration) +{ + m_Protocol->SendEntityEffect(a_Entity, a_EffectID, a_Amplifier, a_Duration); +} + + + + + void cClientHandle::SendEntityEquipment(const cEntity & a_Entity, short a_SlotNum, const cItem & a_Item) { m_Protocol->SendEntityEquipment(a_Entity, a_SlotNum, a_Item); @@ -1882,6 +1891,15 @@ void cClientHandle::SendPlayerSpawn(const cPlayer & a_Player) +void cClientHandle::SendRemoveEntityEffect(const cEntity & a_Entity, int a_EffectID) +{ + m_Protocol->SendRemoveEntityEffect(a_Entity, a_EffectID); +} + + + + + void cClientHandle::SendRespawn(void) { m_Protocol->SendRespawn(); |