summaryrefslogtreecommitdiffstats
path: root/source/Blocks/BlockHandler.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-26 22:06:12 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-26 22:06:12 +0100
commit8dc54301a4f0c1d92d9775c3f97901acbf0230f6 (patch)
treec5c5fa436e823f7f49644b35f22249f46ecda5b9 /source/Blocks/BlockHandler.h
parentcBlockArea: Fixed type / meta copypasta errors in mirroring and rotation code (diff)
downloadcuberite-8dc54301a4f0c1d92d9775c3f97901acbf0230f6.tar
cuberite-8dc54301a4f0c1d92d9775c3f97901acbf0230f6.tar.gz
cuberite-8dc54301a4f0c1d92d9775c3f97901acbf0230f6.tar.bz2
cuberite-8dc54301a4f0c1d92d9775c3f97901acbf0230f6.tar.lz
cuberite-8dc54301a4f0c1d92d9775c3f97901acbf0230f6.tar.xz
cuberite-8dc54301a4f0c1d92d9775c3f97901acbf0230f6.tar.zst
cuberite-8dc54301a4f0c1d92d9775c3f97901acbf0230f6.zip
Diffstat (limited to '')
-rw-r--r--source/Blocks/BlockHandler.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/Blocks/BlockHandler.h b/source/Blocks/BlockHandler.h
index 4c91463bc..cb52be497 100644
--- a/source/Blocks/BlockHandler.h
+++ b/source/Blocks/BlockHandler.h
@@ -112,6 +112,21 @@ public:
*/
virtual void Check(int a_RelX, int a_RelY, int a_RelZ, cChunk & a_Chunk);
+ /// Returns the meta for a block after rotating it counter-clockwise from the specified meta. Default: no change
+ virtual NIBBLETYPE MetaRotateCCW(NIBBLETYPE a_Meta) { return a_Meta; }
+
+ /// Returns the meta for a block after rotating it clockwise from the specified meta. Default: no change
+ virtual NIBBLETYPE MetaRotateCW(NIBBLETYPE a_Meta) { return a_Meta; }
+
+ /// Returns the meta for a block after mirroring it around the XY plane. Default: no change
+ virtual NIBBLETYPE MetaMirrorXY(NIBBLETYPE a_Meta) { return a_Meta; }
+
+ /// Returns the meta for a block after mirroring it around the XZ plane. Default: no change
+ virtual NIBBLETYPE MetaMirrorXZ(NIBBLETYPE a_Meta) { return a_Meta; }
+
+ /// Returns the meta for a block after mirroring it around the YZ plane. Default: no change
+ virtual NIBBLETYPE MetaMirrorYZ(NIBBLETYPE a_Meta) { return a_Meta; }
+
/// Get the blockhandler for a specific block id
static cBlockHandler * GetBlockHandler(BLOCKTYPE a_BlockType);