diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-09-20 15:50:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-20 15:50:52 +0200 |
commit | 68cced73afe546328cf94ed07c57deee47bfadec (patch) | |
tree | 88be88e3fd4a208b9849e526f1877caa44058ab5 /src/BlockInfo.h | |
parent | Added armor and shulker box cleaning (#4875) (diff) | |
download | cuberite-68cced73afe546328cf94ed07c57deee47bfadec.tar cuberite-68cced73afe546328cf94ed07c57deee47bfadec.tar.gz cuberite-68cced73afe546328cf94ed07c57deee47bfadec.tar.bz2 cuberite-68cced73afe546328cf94ed07c57deee47bfadec.tar.lz cuberite-68cced73afe546328cf94ed07c57deee47bfadec.tar.xz cuberite-68cced73afe546328cf94ed07c57deee47bfadec.tar.zst cuberite-68cced73afe546328cf94ed07c57deee47bfadec.zip |
Diffstat (limited to '')
-rw-r--r-- | src/BlockInfo.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/BlockInfo.h b/src/BlockInfo.h index 44e8b5d43..01b5557d4 100644 --- a/src/BlockInfo.h +++ b/src/BlockInfo.h @@ -5,12 +5,6 @@ -// fwd: -class cBlockHandler; - - - - // tolua_begin class cBlockInfo { @@ -54,9 +48,6 @@ public: /** Creates a default BlockInfo structure, initializes all values to their defaults */ cBlockInfo(); - /** Gets the blockhandler for the given block type. */ - static cBlockHandler * GetHandler(BLOCKTYPE a_Type); - private: /** Storage for all the BlockInfo structures. */ @@ -157,13 +148,3 @@ inline const cBlockInfo & cBlockInfo::Get(BLOCKTYPE a_Type) static const cBlockInfoArray ms_Info; return ms_Info[a_Type]; } - - - - - -// Shortcut to get the blockhandler for a specific block -inline cBlockHandler * BlockHandler(BLOCKTYPE a_BlockType) -{ - return cBlockInfo::GetHandler(a_BlockType); -} |