summaryrefslogtreecommitdiffstats
path: root/source/Blocks/BlockCobWeb.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Blocks/BlockCobWeb.h')
-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));
+ }
+} ;
+
+
+
+