summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockCommandBlock.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-19 01:54:38 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-19 01:54:38 +0100
commitf8c8dcc7f36366dc6b59e6741d466e739322d5d1 (patch)
tree0462f2482c311fc4d3afbf39ef5858eccb1706d8 /src/Blocks/BlockCommandBlock.h
parentMerge pull request #557 from xdot/master (diff)
downloadcuberite-f8c8dcc7f36366dc6b59e6741d466e739322d5d1.tar
cuberite-f8c8dcc7f36366dc6b59e6741d466e739322d5d1.tar.gz
cuberite-f8c8dcc7f36366dc6b59e6741d466e739322d5d1.tar.bz2
cuberite-f8c8dcc7f36366dc6b59e6741d466e739322d5d1.tar.lz
cuberite-f8c8dcc7f36366dc6b59e6741d466e739322d5d1.tar.xz
cuberite-f8c8dcc7f36366dc6b59e6741d466e739322d5d1.tar.zst
cuberite-f8c8dcc7f36366dc6b59e6741d466e739322d5d1.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";
+ }
+} ;
+
+
+
+