diff options
author | luksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-24 10:50:38 +0100 |
---|---|---|
committer | luksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-24 10:50:38 +0100 |
commit | eed6f9bb7bd2553a509a7bba7be32436aa96659b (patch) | |
tree | 65894528e1dc06d872a6bd916538b221874111c3 /source/Blocks/BlockMycelium.h | |
parent | ByteBuffer: Fixed buffer overrun possibility. (diff) | |
download | cuberite-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 'source/Blocks/BlockMycelium.h')
-rw-r--r-- | source/Blocks/BlockMycelium.h | 29 |
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));
+ }
+} ;
+
+
+
+
|