summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authornarroo <narroo@vt.edu>2014-03-25 22:17:05 +0100
committernarroo <narroo@vt.edu>2014-03-25 22:17:05 +0100
commite1285eb84f357c3111f5c7382c94bccc7068c660 (patch)
tree9afce1903caab9d6d8905539d0b6cd6a7e50e4d7 /src
parentAdded MetaRotate/Mirror Support for a number of classes. (diff)
downloadcuberite-e1285eb84f357c3111f5c7382c94bccc7068c660.tar
cuberite-e1285eb84f357c3111f5c7382c94bccc7068c660.tar.gz
cuberite-e1285eb84f357c3111f5c7382c94bccc7068c660.tar.bz2
cuberite-e1285eb84f357c3111f5c7382c94bccc7068c660.tar.lz
cuberite-e1285eb84f357c3111f5c7382c94bccc7068c660.tar.xz
cuberite-e1285eb84f357c3111f5c7382c94bccc7068c660.tar.zst
cuberite-e1285eb84f357c3111f5c7382c94bccc7068c660.zip
Diffstat (limited to 'src')
-rw-r--r--src/Blocks/BlockSign.h12
-rw-r--r--src/Blocks/MetaRotator.h (renamed from src/Blocks/MetaRotater.h)0
2 files changed, 12 insertions, 0 deletions
diff --git a/src/Blocks/BlockSign.h b/src/Blocks/BlockSign.h
index cd0c02a40..82d9a2fcc 100644
--- a/src/Blocks/BlockSign.h
+++ b/src/Blocks/BlockSign.h
@@ -71,6 +71,18 @@ public:
{
a_Player->GetClientHandle()->SendEditSign(a_BlockX, a_BlockY, a_BlockZ);
}
+
+
+ virtual NIBBLETYPE MetaRotateCW(NIBBLETYPE a_Meta) override
+ {
+ return ++a_Meta;
+ }
+
+
+ virtual NIBBLETYPE MetaRotateCCW(NIBBLETYPE a_Meta) override
+ {
+ return --a_Meta;
+ }
} ;
diff --git a/src/Blocks/MetaRotater.h b/src/Blocks/MetaRotator.h
index dde88e6db..dde88e6db 100644
--- a/src/Blocks/MetaRotater.h
+++ b/src/Blocks/MetaRotator.h