summaryrefslogtreecommitdiffstats
path: root/source/Blocks/BlockMycelium.h
diff options
context:
space:
mode:
authorluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-24 10:50:38 +0100
committerluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-24 10:50:38 +0100
commiteed6f9bb7bd2553a509a7bba7be32436aa96659b (patch)
tree65894528e1dc06d872a6bd916538b221874111c3 /source/Blocks/BlockMycelium.h
parentByteBuffer: Fixed buffer overrun possibility. (diff)
downloadcuberite-eed6f9bb7bd2553a509a7bba7be32436aa96659b.tar
cuberite-eed6f9bb7bd2553a509a7bba7be32436aa96659b.tar.gz
cuberite-eed6f9bb7bd2553a509a7bba7be32436aa96659b.tar.bz2
cuberite-eed6f9bb7bd2553a509a7bba7be32436aa96659b.tar.lz
cuberite-eed6f9bb7bd2553a509a7bba7be32436aa96659b.tar.xz
cuberite-eed6f9bb7bd2553a509a7bba7be32436aa96659b.tar.zst
cuberite-eed6f9bb7bd2553a509a7bba7be32436aa96659b.zip
Diffstat (limited to '')
-rw-r--r--source/Blocks/BlockMycelium.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/source/Blocks/BlockMycelium.h b/source/Blocks/BlockMycelium.h
new file mode 100644
index 000000000..57b45dfe1
--- /dev/null
+++ b/source/Blocks/BlockMycelium.h
@@ -0,0 +1,29 @@
+
+#pragma once
+
+#include "BlockHandler.h"
+#include "../MersenneTwister.h"
+#include "../World.h"
+
+
+
+
+
+class cBlockMyceliumHandler :
+ public cBlockHandler
+{
+public:
+ cBlockMyceliumHandler(BLOCKTYPE a_BlockType)
+ : cBlockHandler(a_BlockType)
+ {
+ }
+
+ virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
+ {
+ a_Pickups.push_back(cItem(E_BLOCK_DIRT, 1, 0));
+ }
+} ;
+
+
+
+