summaryrefslogtreecommitdiffstats
path: root/src/BlockInfo.cpp
diff options
context:
space:
mode:
authorKingCol13 <48412633+KingCol13@users.noreply.github.com>2020-10-24 19:48:48 +0200
committerGitHub <noreply@github.com>2020-10-24 19:48:48 +0200
commitc11ca96c3de23c35788a9c9c109fbe38e3caeb3a (patch)
tree833b28439f2b82845d03e5abb73fcbf8e15d170f /src/BlockInfo.cpp
parentcBlockInfo: further cleanup (#5001) (diff)
downloadcuberite-c11ca96c3de23c35788a9c9c109fbe38e3caeb3a.tar
cuberite-c11ca96c3de23c35788a9c9c109fbe38e3caeb3a.tar.gz
cuberite-c11ca96c3de23c35788a9c9c109fbe38e3caeb3a.tar.bz2
cuberite-c11ca96c3de23c35788a9c9c109fbe38e3caeb3a.tar.lz
cuberite-c11ca96c3de23c35788a9c9c109fbe38e3caeb3a.tar.xz
cuberite-c11ca96c3de23c35788a9c9c109fbe38e3caeb3a.tar.zst
cuberite-c11ca96c3de23c35788a9c9c109fbe38e3caeb3a.zip
Diffstat (limited to 'src/BlockInfo.cpp')
-rw-r--r--src/BlockInfo.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/BlockInfo.cpp b/src/BlockInfo.cpp
index 21fa9e220..62978172c 100644
--- a/src/BlockInfo.cpp
+++ b/src/BlockInfo.cpp
@@ -134,6 +134,15 @@ bool IsBlockFence(BLOCKTYPE a_BlockType)
+bool IsBlockShulkerBox(BLOCKTYPE a_BlockType)
+{
+ return ((a_BlockType >= E_BLOCK_WHITE_SHULKER_BOX) && (a_BlockType <= E_BLOCK_BLACK_SHULKER_BOX));
+}
+
+
+
+
+
bool IsBlockMaterialWood(BLOCKTYPE a_BlockType)
{
switch (a_BlockType)