From 4561b2c22f755cd91009f2d90efa15671db6a15a Mon Sep 17 00:00:00 2001 From: "luksor111@gmail.com" Date: Sat, 29 Dec 2012 11:49:00 +0000 Subject: Cauldrons and Brewing Stands are now placeable Cauldrons can be filled with water and used to fill bottles git-svn-id: http://mc-server.googlecode.com/svn/trunk@1116 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Blocks/BlockBrewingStand.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 source/Blocks/BlockBrewingStand.h (limited to 'source/Blocks/BlockBrewingStand.h') diff --git a/source/Blocks/BlockBrewingStand.h b/source/Blocks/BlockBrewingStand.h new file mode 100644 index 000000000..34a2b6c56 --- /dev/null +++ b/source/Blocks/BlockBrewingStand.h @@ -0,0 +1,32 @@ + +#pragma once + +#include "BlockHandler.h" + + + + + +class cBlockBrewingStandHandler : + public cBlockHandler +{ +public: + cBlockBrewingStandHandler(BLOCKTYPE a_BlockType) + : cBlockHandler(a_BlockType) + { + } + + virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override + { + a_Pickups.push_back(cItem(E_ITEM_BREWING_STAND, 1, 0)); + } + + virtual bool IsUseable() override + { + return true; + } +} ; + + + + -- cgit v1.2.3