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 | |
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 |
-rw-r--r-- | src/ClientHandle.cpp | 18 | ||||
-rw-r--r-- | src/ClientHandle.h | 2 |
2 files changed, 20 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(); diff --git a/src/ClientHandle.h b/src/ClientHandle.h index 2ff75b28a..19ebc023d 100644 --- a/src/ClientHandle.h +++ b/src/ClientHandle.h @@ -100,6 +100,7 @@ public: void SendDestroyEntity (const cEntity & a_Entity); void SendDisconnect (const AString & a_Reason); void SendEditSign (int a_BlockX, int a_BlockY, int a_BlockZ); + void SendEntityEffect (const cEntity & a_Entity, int a_EffectID, int a_Amplifier, short a_Duration); void SendEntityEquipment (const cEntity & a_Entity, short a_SlotNum, const cItem & a_Item); void SendEntityHeadLook (const cEntity & a_Entity); void SendEntityLook (const cEntity & a_Entity); @@ -120,6 +121,7 @@ public: void SendPlayerMoveLook (void); void SendPlayerPosition (void); void SendPlayerSpawn (const cPlayer & a_Player); + void SendRemoveEntityEffect (const cEntity & a_Entity, int a_EffectID); void SendRespawn (void); void SendExperience (void); void SendExperienceOrb (const cExpOrb & a_ExpOrb); |