summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockComparator.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2016-07-31 22:54:35 +0200
committerGitHub <noreply@github.com>2016-07-31 22:54:35 +0200
commitd46f7ce2c880026ff4663d89d3e76117219b87a2 (patch)
treeadc5f25d7473b69e49afeb75427949a7eb189384 /src/Blocks/BlockComparator.h
parentAdd {} around easyinstall.sh (#3286) (diff)
downloadcuberite-d46f7ce2c880026ff4663d89d3e76117219b87a2.tar
cuberite-d46f7ce2c880026ff4663d89d3e76117219b87a2.tar.gz
cuberite-d46f7ce2c880026ff4663d89d3e76117219b87a2.tar.bz2
cuberite-d46f7ce2c880026ff4663d89d3e76117219b87a2.tar.lz
cuberite-d46f7ce2c880026ff4663d89d3e76117219b87a2.tar.xz
cuberite-d46f7ce2c880026ff4663d89d3e76117219b87a2.tar.zst
cuberite-d46f7ce2c880026ff4663d89d3e76117219b87a2.zip
Diffstat (limited to 'src/Blocks/BlockComparator.h')
-rw-r--r--src/Blocks/BlockComparator.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Blocks/BlockComparator.h b/src/Blocks/BlockComparator.h
index 394b53a15..5ba17c691 100644
--- a/src/Blocks/BlockComparator.h
+++ b/src/Blocks/BlockComparator.h
@@ -60,6 +60,16 @@ public:
return true;
}
+ inline static bool IsInSubtractionMode(NIBBLETYPE a_Meta)
+ {
+ return ((a_Meta & 0x4) == 0x4);
+ }
+
+ inline static bool IsOn(NIBBLETYPE a_Meta)
+ {
+ return ((a_Meta & 0x8) == 0x8);
+ }
+
inline static Vector3i GetSideCoordinate(const Vector3i & a_Position, NIBBLETYPE a_Meta, bool a_bInverse)
{
auto Position = a_Position;