diff options
author | Mattes D <github@xoft.cz> | 2013-12-14 23:40:24 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2013-12-14 23:40:24 +0100 |
commit | 5e6a4c99a7509e480e4c2b31d66044ec1fa44559 (patch) | |
tree | 9815ee7865a445f45a31485225649f5e977ef339 /src/Protocol/ProtocolRecognizer.cpp | |
parent | Added tolua++ redirection include. (diff) | |
parent | Exported E_EFFECTS_<Effect> to lua. Forgot to commit Globals.h. (diff) | |
download | cuberite-5e6a4c99a7509e480e4c2b31d66044ec1fa44559.tar cuberite-5e6a4c99a7509e480e4c2b31d66044ec1fa44559.tar.gz cuberite-5e6a4c99a7509e480e4c2b31d66044ec1fa44559.tar.bz2 cuberite-5e6a4c99a7509e480e4c2b31d66044ec1fa44559.tar.lz cuberite-5e6a4c99a7509e480e4c2b31d66044ec1fa44559.tar.xz cuberite-5e6a4c99a7509e480e4c2b31d66044ec1fa44559.tar.zst cuberite-5e6a4c99a7509e480e4c2b31d66044ec1fa44559.zip |
Diffstat (limited to 'src/Protocol/ProtocolRecognizer.cpp')
-rw-r--r-- | src/Protocol/ProtocolRecognizer.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Protocol/ProtocolRecognizer.cpp b/src/Protocol/ProtocolRecognizer.cpp index 683700d37..30b48a92f 100644 --- a/src/Protocol/ProtocolRecognizer.cpp +++ b/src/Protocol/ProtocolRecognizer.cpp @@ -216,6 +216,16 @@ void cProtocolRecognizer::SendEditSign(int a_BlockX, int a_BlockY, int a_BlockZ) +void cProtocolRecognizer::SendEntityEffect(const cEntity & a_Entity, int a_EffectID, int a_Amplifier, short a_Duration) +{ + ASSERT(m_Protocol != NULL); + m_Protocol->SendEntityEffect(a_Entity, a_EffectID, a_Amplifier, a_Duration); +} + + + + + void cProtocolRecognizer::SendEntityEquipment(const cEntity & a_Entity, short a_SlotNum, const cItem & a_Item) { ASSERT(m_Protocol != NULL); @@ -456,6 +466,16 @@ void cProtocolRecognizer::SendPlayerSpawn(const cPlayer & a_Player) +void cProtocolRecognizer::SendRemoveEntityEffect(const cEntity & a_Entity, int a_EffectID) +{ + ASSERT(m_Protocol != NULL); + m_Protocol->SendRemoveEntityEffect(a_Entity, a_EffectID); +} + + + + + void cProtocolRecognizer::SendRespawn(void) { ASSERT(m_Protocol != NULL); |