diff options
author | worktycho <work.tycho@gmail.com> | 2015-12-14 21:31:33 +0100 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-12-14 21:31:33 +0100 |
commit | 1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84 (patch) | |
tree | 8adc41d291bdac3c83eb0c56933e7a29cd1c3942 /src/BlockInfo.h | |
parent | Merge pull request #2744 from cuberite/HopperMetaStrip (diff) | |
parent | blockheight mechanism (diff) | |
download | cuberite-1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84.tar cuberite-1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84.tar.gz cuberite-1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84.tar.bz2 cuberite-1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84.tar.lz cuberite-1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84.tar.xz cuberite-1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84.tar.zst cuberite-1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84.zip |
Diffstat (limited to 'src/BlockInfo.h')
-rw-r--r-- | src/BlockInfo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/BlockInfo.h b/src/BlockInfo.h index 4709f2357..9f562e531 100644 --- a/src/BlockInfo.h +++ b/src/BlockInfo.h @@ -61,6 +61,9 @@ public: /** Can a finisher change it? */ bool m_CanBeTerraformed; + /** Block height */ + float m_BlockHeight; + /** Sound when placing this block */ AString m_PlaceSound; @@ -80,6 +83,7 @@ public: inline static bool IsSolid (BLOCKTYPE a_Type) { return Get(a_Type).m_IsSolid; } inline static bool FullyOccupiesVoxel (BLOCKTYPE a_Type) { return Get(a_Type).m_FullyOccupiesVoxel; } inline static bool CanBeTerraformed (BLOCKTYPE a_Type) { return Get(a_Type).m_CanBeTerraformed; } + inline static float GetBlockHeight (BLOCKTYPE a_Type) { return Get(a_Type).m_BlockHeight; } inline static AString GetPlaceSound (BLOCKTYPE a_Type) { return Get(a_Type).m_PlaceSound; } // tolua_end @@ -101,6 +105,7 @@ protected: , m_IsSolid(true) , m_FullyOccupiesVoxel(false) , m_CanBeTerraformed(false) + , m_BlockHeight(1.0) , m_PlaceSound("") , m_Handler(nullptr) {} |