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