diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-09-17 15:51:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-17 15:51:42 +0200 |
commit | c3d2956ba588a4559fabc36a0c1fc7dd28279314 (patch) | |
tree | b8210f994441a20ab08499df442e15fb9afaaf30 /src/Blocks/BlockHandler.h | |
parent | Add some const qualifiers to functions (#4874) (diff) | |
download | cuberite-c3d2956ba588a4559fabc36a0c1fc7dd28279314.tar cuberite-c3d2956ba588a4559fabc36a0c1fc7dd28279314.tar.gz cuberite-c3d2956ba588a4559fabc36a0c1fc7dd28279314.tar.bz2 cuberite-c3d2956ba588a4559fabc36a0c1fc7dd28279314.tar.lz cuberite-c3d2956ba588a4559fabc36a0c1fc7dd28279314.tar.xz cuberite-c3d2956ba588a4559fabc36a0c1fc7dd28279314.tar.zst cuberite-c3d2956ba588a4559fabc36a0c1fc7dd28279314.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockHandler.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Blocks/BlockHandler.h b/src/Blocks/BlockHandler.h index 90866fbb7..96e251f49 100644 --- a/src/Blocks/BlockHandler.h +++ b/src/Blocks/BlockHandler.h @@ -228,12 +228,12 @@ public: Helper used in many ConvertToPickups() implementations. */ static bool ToolHasSilkTouch(const cItem * a_Tool); + // Gets the blockhandler for the given block type. + static cBlockHandler & GetBlockHandler(BLOCKTYPE a_BlockType); protected: - BLOCKTYPE m_BlockType; - // Creates a new blockhandler for the given block type. For internal use only, use ::GetBlockHandler() instead. - static cBlockHandler * CreateBlockHandler(BLOCKTYPE a_BlockType); + BLOCKTYPE m_BlockType; friend class cBlockInfo; }; |