diff options
author | bibo38 <bibo38@github.com> | 2015-11-01 20:36:54 +0100 |
---|---|---|
committer | bibo38 <bibo38@github.com> | 2015-11-07 17:23:02 +0100 |
commit | d92a92d78aae9617b973a142878ab7c038cf0d3d (patch) | |
tree | 4b4b742cd2e5d7785bd2b4c38a0f7e1a3db260f2 /src/Blocks/BlockSlime.h | |
parent | Merge pull request #2618 from Gargaj/deadmeansdead (diff) | |
download | cuberite-d92a92d78aae9617b973a142878ab7c038cf0d3d.tar cuberite-d92a92d78aae9617b973a142878ab7c038cf0d3d.tar.gz cuberite-d92a92d78aae9617b973a142878ab7c038cf0d3d.tar.bz2 cuberite-d92a92d78aae9617b973a142878ab7c038cf0d3d.tar.lz cuberite-d92a92d78aae9617b973a142878ab7c038cf0d3d.tar.xz cuberite-d92a92d78aae9617b973a142878ab7c038cf0d3d.tar.zst cuberite-d92a92d78aae9617b973a142878ab7c038cf0d3d.zip |
Diffstat (limited to 'src/Blocks/BlockSlime.h')
-rw-r--r-- | src/Blocks/BlockSlime.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/Blocks/BlockSlime.h b/src/Blocks/BlockSlime.h new file mode 100644 index 000000000..e785a6a13 --- /dev/null +++ b/src/Blocks/BlockSlime.h @@ -0,0 +1,32 @@ +#pragma once + +#include "BlockHandler.h" + + + + + +class cBlockSlimeHandler : + public cBlockHandler +{ +public: + cBlockSlimeHandler(BLOCKTYPE a_BlockType) + : cBlockHandler(a_BlockType) + { + } + + virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override + { + a_Pickups.push_back(cItem(m_BlockType, 1, 0)); + } + + virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) override + { + UNUSED(a_Meta); + return 1; + } +}; + + + + |