diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2018-07-24 01:35:20 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2018-07-25 16:29:53 +0200 |
commit | b8ab03bc6b41dbe8262f87def3ff3513924315d4 (patch) | |
tree | 689ae898e310323b7574f23fff27ff4e00ec371e /src/Blocks/BlockPiston.h | |
parent | Reimplemented fall particles (diff) | |
download | cuberite-b8ab03bc6b41dbe8262f87def3ff3513924315d4.tar cuberite-b8ab03bc6b41dbe8262f87def3ff3513924315d4.tar.gz cuberite-b8ab03bc6b41dbe8262f87def3ff3513924315d4.tar.bz2 cuberite-b8ab03bc6b41dbe8262f87def3ff3513924315d4.tar.lz cuberite-b8ab03bc6b41dbe8262f87def3ff3513924315d4.tar.xz cuberite-b8ab03bc6b41dbe8262f87def3ff3513924315d4.tar.zst cuberite-b8ab03bc6b41dbe8262f87def3ff3513924315d4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockPiston.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Blocks/BlockPiston.h b/src/Blocks/BlockPiston.h index 21ebbcd39..e604cd38e 100644 --- a/src/Blocks/BlockPiston.h +++ b/src/Blocks/BlockPiston.h @@ -100,6 +100,12 @@ private: typedef std::unordered_set<Vector3i, VectorHasher<int>> Vector3iSet; + /** Piston extension block action */ + static const Byte PistonExtendAction = 0U; + + /** Piston retraction block action */ + static const Byte PistonRetractAction = 1U; + /** Returns true if the piston (specified by blocktype) is a sticky piston */ static inline bool IsSticky(BLOCKTYPE a_BlockType) { return (a_BlockType == E_BLOCK_STICKY_PISTON); } |