diff options
author | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-16 20:19:25 +0200 |
---|---|---|
committer | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-16 20:19:25 +0200 |
commit | d3b7a39f928473366132b37f76fc1bb13b08de43 (patch) | |
tree | e22b5efcf26ab06eac19340478f77236b4effa14 /source/items/ItemRedstoneRepeater.h | |
parent | Fixed some small bugs :) (diff) | |
download | cuberite-d3b7a39f928473366132b37f76fc1bb13b08de43.tar cuberite-d3b7a39f928473366132b37f76fc1bb13b08de43.tar.gz cuberite-d3b7a39f928473366132b37f76fc1bb13b08de43.tar.bz2 cuberite-d3b7a39f928473366132b37f76fc1bb13b08de43.tar.lz cuberite-d3b7a39f928473366132b37f76fc1bb13b08de43.tar.xz cuberite-d3b7a39f928473366132b37f76fc1bb13b08de43.tar.zst cuberite-d3b7a39f928473366132b37f76fc1bb13b08de43.zip |
Diffstat (limited to '')
-rw-r--r-- | source/items/ItemRedstoneRepeater.h | 27 |
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 |