From 2006de22170d40666fc8437829a10a79556f55bf Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 6 Apr 2013 18:20:06 +0000 Subject: Cobwebs are now washed away by water and can be broken by swords and shears, giving string. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1363 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Blocks/BlockCobWeb.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 source/Blocks/BlockCobWeb.h (limited to 'source/Blocks/BlockCobWeb.h') 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)); + } +} ; + + + + -- cgit v1.2.3