summaryrefslogtreecommitdiffstats
path: root/src/BlockInfo.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-09-20 15:50:52 +0200
committerGitHub <noreply@github.com>2020-09-20 15:50:52 +0200
commit68cced73afe546328cf94ed07c57deee47bfadec (patch)
tree88be88e3fd4a208b9849e526f1877caa44058ab5 /src/BlockInfo.h
parentAdded armor and shulker box cleaning (#4875) (diff)
downloadcuberite-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 'src/BlockInfo.h')
-rw-r--r--src/BlockInfo.h19
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);
-}