diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-04-12 00:01:15 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-04-12 00:01:15 +0200 |
commit | 875c2557c30aa5254c2ec3f4062ec463418c7d09 (patch) | |
tree | 29933f4e2c3d97efe5cbc2d5effaa07a643815d7 /src/BlockEntities/BeaconEntity.h | |
parent | Fixed issues with 64-bit MSVC compilation. (diff) | |
download | cuberite-875c2557c30aa5254c2ec3f4062ec463418c7d09.tar cuberite-875c2557c30aa5254c2ec3f4062ec463418c7d09.tar.gz cuberite-875c2557c30aa5254c2ec3f4062ec463418c7d09.tar.bz2 cuberite-875c2557c30aa5254c2ec3f4062ec463418c7d09.tar.lz cuberite-875c2557c30aa5254c2ec3f4062ec463418c7d09.tar.xz cuberite-875c2557c30aa5254c2ec3f4062ec463418c7d09.tar.zst cuberite-875c2557c30aa5254c2ec3f4062ec463418c7d09.zip |
Diffstat (limited to '')
-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 |