summaryrefslogtreecommitdiffstats
path: root/source/items/ItemRedstoneDust.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/items/ItemRedstoneDust.h')
-rw-r--r--source/items/ItemRedstoneDust.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/source/items/ItemRedstoneDust.h b/source/items/ItemRedstoneDust.h
new file mode 100644
index 000000000..99529a4e8
--- /dev/null
+++ b/source/items/ItemRedstoneDust.h
@@ -0,0 +1,27 @@
+#pragma once
+#include "Item.h"
+
+
+class cItemRedstoneDustHandler : public cItemHandler
+{
+public:
+ cItemRedstoneDustHandler(int a_ItemID)
+ : cItemHandler(a_ItemID)
+ {
+ }
+
+ virtual bool IsPlaceable()
+ {
+ return true;
+ }
+
+ virtual BLOCKTYPE GetBlockType()
+ {
+ return E_BLOCK_REDSTONE_WIRE;
+ }
+
+ virtual char GetBlockMeta(char a_ItemMeta)
+ {
+ return 0;
+ }
+}; \ No newline at end of file