summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockLever.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockLever.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Blocks/BlockLever.h b/src/Blocks/BlockLever.h
index 85fd2f28d..a3bbd54f5 100644
--- a/src/Blocks/BlockLever.h
+++ b/src/Blocks/BlockLever.h
@@ -156,6 +156,12 @@ public:
UNUSED(a_Meta);
return 0;
}
+
+ /** Extracts the ON bit from metadata and returns if true if it is set */
+ static bool IsLeverOn(NIBBLETYPE a_BlockMeta)
+ {
+ return ((a_BlockMeta & 0x8) == 0x8);
+ }
} ;