summaryrefslogtreecommitdiffstats
path: root/source/Blocks/BlockCobWeb.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-06 20:20:06 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-06 20:20:06 +0200
commit2006de22170d40666fc8437829a10a79556f55bf (patch)
treefb9ed8c84268039cfc7018cbb4dd1e1ff8852a07 /source/Blocks/BlockCobWeb.h
parentMineshafts: Added a (nonworking) mob spawner in cobweb spider nests. (diff)
downloadcuberite-2006de22170d40666fc8437829a10a79556f55bf.tar
cuberite-2006de22170d40666fc8437829a10a79556f55bf.tar.gz
cuberite-2006de22170d40666fc8437829a10a79556f55bf.tar.bz2
cuberite-2006de22170d40666fc8437829a10a79556f55bf.tar.lz
cuberite-2006de22170d40666fc8437829a10a79556f55bf.tar.xz
cuberite-2006de22170d40666fc8437829a10a79556f55bf.tar.zst
cuberite-2006de22170d40666fc8437829a10a79556f55bf.zip
Diffstat (limited to '')
-rw-r--r--source/Blocks/BlockCobWeb.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/source/Blocks/BlockCobWeb.h b/source/Blocks/BlockCobWeb.h
new file mode 100644
index 000000000..86bb6e773
--- /dev/null
+++ b/source/Blocks/BlockCobWeb.h
@@ -0,0 +1,30 @@
+
+// BlockCobWeb.h
+
+// Declares the cBlockCobWebHandler object representing the BlockHandler for cobwebs
+
+#pragma once
+
+
+
+
+
+class cBlockCobWebHandler :
+ public cBlockHandler
+{
+public:
+ cBlockCobWebHandler(BLOCKTYPE a_BlockType)
+ : cBlockHandler(a_BlockType)
+ {
+ }
+
+
+ virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_Meta) override
+ {
+ a_Pickups.push_back(cItem(E_ITEM_STRING, 1, 0));
+ }
+} ;
+
+
+
+