summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockCommandBlock.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-01-19 22:47:52 +0100
committerMattes D <github@xoft.cz>2014-01-19 22:47:52 +0100
commitfde8b0be60fb58796727d240ceab48a5e2aa0b88 (patch)
treec7c97ced908edb8d0a719032fb3b9eaff9d7ca7c /src/Blocks/BlockCommandBlock.h
parentRewritten SocketThreads for proper shutdown scenario. (diff)
parentRemoved unneeded paramters (diff)
downloadcuberite-fde8b0be60fb58796727d240ceab48a5e2aa0b88.tar
cuberite-fde8b0be60fb58796727d240ceab48a5e2aa0b88.tar.gz
cuberite-fde8b0be60fb58796727d240ceab48a5e2aa0b88.tar.bz2
cuberite-fde8b0be60fb58796727d240ceab48a5e2aa0b88.tar.lz
cuberite-fde8b0be60fb58796727d240ceab48a5e2aa0b88.tar.xz
cuberite-fde8b0be60fb58796727d240ceab48a5e2aa0b88.tar.zst
cuberite-fde8b0be60fb58796727d240ceab48a5e2aa0b88.zip
Diffstat (limited to 'src/Blocks/BlockCommandBlock.h')
-rw-r--r--src/Blocks/BlockCommandBlock.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/Blocks/BlockCommandBlock.h b/src/Blocks/BlockCommandBlock.h
new file mode 100644
index 000000000..cf0103765
--- /dev/null
+++ b/src/Blocks/BlockCommandBlock.h
@@ -0,0 +1,32 @@
+
+#pragma once
+
+#include "BlockEntity.h"
+
+
+
+
+
+class cBlockCommandBlockHandler :
+ public cBlockEntityHandler
+{
+public:
+ cBlockCommandBlockHandler(BLOCKTYPE a_BlockType)
+ : cBlockEntityHandler(a_BlockType)
+ {
+ }
+
+ virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
+ {
+ a_Pickups.push_back(cItem(E_BLOCK_AIR, 8, 0));
+ }
+
+ virtual const char * GetStepSound(void) override
+ {
+ return "step.stone";
+ }
+} ;
+
+
+
+