summaryrefslogtreecommitdiffstats
path: root/source/Items/ItemSugarcane.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Items/ItemSugarcane.h')
-rw-r--r--source/Items/ItemSugarcane.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/source/Items/ItemSugarcane.h b/source/Items/ItemSugarcane.h
new file mode 100644
index 000000000..4fdf43428
--- /dev/null
+++ b/source/Items/ItemSugarcane.h
@@ -0,0 +1,39 @@
+
+#pragma once
+
+#include "ItemHandler.h"
+#include "../World.h"
+
+
+
+
+
+class cItemSugarcaneHandler :
+ public cItemHandler
+{
+public:
+ cItemSugarcaneHandler(int a_ItemID)
+ : cItemHandler(a_ItemID)
+ {
+
+ }
+
+ virtual bool IsPlaceable() override
+ {
+ return true;
+ }
+
+ virtual BLOCKTYPE GetBlockType() override
+ {
+ return E_BLOCK_SUGARCANE;
+ }
+
+ virtual NIBBLETYPE GetBlockMeta(short a_ItemDamage) override
+ {
+ return 0; //Not grown yet
+ }
+} ;
+
+
+
+