diff options
author | madmaxoft <github@xoft.cz> | 2014-04-19 13:01:28 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-04-19 13:01:28 +0200 |
commit | 5f3df1445f1ec129667a603bc979e293a3ed8272 (patch) | |
tree | 1d0b4bc0f8c46a5df74a2ff98f35ee5ae8491e2f /src/BlockEntities/BeaconEntity.h | |
parent | Compilation fix (diff) | |
parent | Some tweaks (diff) | |
download | cuberite-5f3df1445f1ec129667a603bc979e293a3ed8272.tar cuberite-5f3df1445f1ec129667a603bc979e293a3ed8272.tar.gz cuberite-5f3df1445f1ec129667a603bc979e293a3ed8272.tar.bz2 cuberite-5f3df1445f1ec129667a603bc979e293a3ed8272.tar.lz cuberite-5f3df1445f1ec129667a603bc979e293a3ed8272.tar.xz cuberite-5f3df1445f1ec129667a603bc979e293a3ed8272.tar.zst cuberite-5f3df1445f1ec129667a603bc979e293a3ed8272.zip |
Diffstat (limited to 'src/BlockEntities/BeaconEntity.h')
-rw-r--r-- | src/BlockEntities/BeaconEntity.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/BlockEntities/BeaconEntity.h b/src/BlockEntities/BeaconEntity.h new file mode 100644 index 000000000..1dfd745b2 --- /dev/null +++ b/src/BlockEntities/BeaconEntity.h @@ -0,0 +1,40 @@ + +#pragma once + +#include "BlockEntity.h" + + + + + +namespace Json +{ + class Value; +} + + + + + +class cBeaconEntity : + public cBlockEntity +{ + typedef cBlockEntity super; + +public: + + // The initial constructor + cBeaconEntity(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World); + + // Returns the amount of layers the pyramid below the beacon has. + int GetPyramidLevel(void); + + // Returns true if the block is a diamond block, an golden block, an iron block or an emerald block. + bool IsMineralBlock(BLOCKTYPE a_BlockType); + + // cBlockEntity overrides: + virtual void SaveToJson(Json::Value& a_Value ) override; + virtual void SendTo(cClientHandle & a_Client) override; + virtual void UsedBy(cPlayer * a_Player) override; + virtual bool Tick(float a_Dt, cChunk & /* a_Chunk */) override; +} ;
\ No newline at end of file |