diff options
author | bibo38 <bibo38@github.com> | 2015-11-05 21:39:37 +0100 |
---|---|---|
committer | bibo38 <bibo38@github.com> | 2015-11-07 17:23:02 +0100 |
commit | f8c28cc373b1942f19f1b343f301e16d25463ac5 (patch) | |
tree | 59342eb86ccce4a753d13e5b22a8f5085bb60ad2 /src | |
parent | Fixed the style problems and added some comments (diff) | |
download | cuberite-f8c28cc373b1942f19f1b343f301e16d25463ac5.tar cuberite-f8c28cc373b1942f19f1b343f301e16d25463ac5.tar.gz cuberite-f8c28cc373b1942f19f1b343f301e16d25463ac5.tar.bz2 cuberite-f8c28cc373b1942f19f1b343f301e16d25463ac5.tar.lz cuberite-f8c28cc373b1942f19f1b343f301e16d25463ac5.tar.xz cuberite-f8c28cc373b1942f19f1b343f301e16d25463ac5.tar.zst cuberite-f8c28cc373b1942f19f1b343f301e16d25463ac5.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/Blocks/BlockPiston.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Blocks/BlockPiston.h b/src/Blocks/BlockPiston.h index f8851e091..0001a5787 100644 --- a/src/Blocks/BlockPiston.h +++ b/src/Blocks/BlockPiston.h @@ -81,6 +81,9 @@ public: } } + /** This method converts the magic piston metadata into a direction vector. + This vector has a length of 1 and points into the direction, in which the piston will extend. + */ static Vector3i GetDirectionVec(int a_PistonMeta); static void ExtendPiston(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World); |