summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockSlime.h
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-11-07 19:45:59 +0100
committerworktycho <work.tycho@gmail.com>2015-11-07 19:45:59 +0100
commite85082d2f1161fa29d0a04c87b35cab1252ff143 (patch)
treef3dfcaa95ccf110bada016d20aac3c3446d3d501 /src/Blocks/BlockSlime.h
parentMerge pull request #2621 from Gargaj/pressureplatepower (diff)
parentRefactored code to use vectors in the cPistonHandler class (diff)
downloadcuberite-e85082d2f1161fa29d0a04c87b35cab1252ff143.tar
cuberite-e85082d2f1161fa29d0a04c87b35cab1252ff143.tar.gz
cuberite-e85082d2f1161fa29d0a04c87b35cab1252ff143.tar.bz2
cuberite-e85082d2f1161fa29d0a04c87b35cab1252ff143.tar.lz
cuberite-e85082d2f1161fa29d0a04c87b35cab1252ff143.tar.xz
cuberite-e85082d2f1161fa29d0a04c87b35cab1252ff143.tar.zst
cuberite-e85082d2f1161fa29d0a04c87b35cab1252ff143.zip
Diffstat (limited to 'src/Blocks/BlockSlime.h')
-rw-r--r--src/Blocks/BlockSlime.h32
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;
+ }
+};
+
+
+
+