diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-07 19:03:56 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-12-07 19:03:56 +0100 |
commit | 5bed85aba0720dc22db56dcaec28675c189491c4 (patch) | |
tree | 0b48aac460633e5d0410acf45f591c08ae51ce11 /src/Blocks/BlockRedstoneLamp.h | |
parent | Changed some FastSetBlocks to SetBlock (diff) | |
download | cuberite-5bed85aba0720dc22db56dcaec28675c189491c4.tar cuberite-5bed85aba0720dc22db56dcaec28675c189491c4.tar.gz cuberite-5bed85aba0720dc22db56dcaec28675c189491c4.tar.bz2 cuberite-5bed85aba0720dc22db56dcaec28675c189491c4.tar.lz cuberite-5bed85aba0720dc22db56dcaec28675c189491c4.tar.xz cuberite-5bed85aba0720dc22db56dcaec28675c189491c4.tar.zst cuberite-5bed85aba0720dc22db56dcaec28675c189491c4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockRedstoneLamp.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Blocks/BlockRedstoneLamp.h b/src/Blocks/BlockRedstoneLamp.h new file mode 100644 index 000000000..69a2b27c2 --- /dev/null +++ b/src/Blocks/BlockRedstoneLamp.h @@ -0,0 +1,27 @@ + +#pragma once + +#include "BlockHandler.h" + + + + + +class cBlockRedstoneLampHandler : + public cBlockHandler +{ +public: + cBlockRedstoneLampHandler(BLOCKTYPE a_BlockType) + : cBlockHandler(a_BlockType) + { + } + + virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override + { + a_Pickups.push_back(cItem(E_BLOCK_REDSTONE_LAMP_OFF, 1, 0)); + } +}; + + + + |