summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockPackedIce.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockPackedIce.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/Blocks/BlockPackedIce.h b/src/Blocks/BlockPackedIce.h
new file mode 100644
index 000000000..e344b2a19
--- /dev/null
+++ b/src/Blocks/BlockPackedIce.h
@@ -0,0 +1,37 @@
+
+#pragma once
+
+#include "BlockHandler.h"
+
+
+
+
+
+class cBlockPackedIceHandler :
+ public cBlockHandler
+{
+ using Super = cBlockHandler;
+
+public:
+
+ using Super::Super;
+
+private:
+
+ virtual cItems ConvertToPickups(NIBBLETYPE a_BlockMeta, cBlockEntity * a_BlockEntity, const cEntity * a_Digger, const cItem * a_Tool) const override
+ {
+ // Only drop self when using silk-touch:
+ if (ToolHasSilkTouch(a_Tool))
+ {
+ return cItem(m_BlockType);
+ }
+
+ return {};
+ }
+
+ virtual ColourID GetMapBaseColourID(NIBBLETYPE a_Meta) const override
+ {
+ UNUSED(a_Meta);
+ return 5;
+ }
+} ;