summaryrefslogtreecommitdiffstats
path: root/source/items/ItemSapling.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/items/ItemSapling.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/source/items/ItemSapling.h b/source/items/ItemSapling.h
new file mode 100644
index 000000000..29c14abee
--- /dev/null
+++ b/source/items/ItemSapling.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include "Item.h"
+
+
+class cItemSaplingHandler : public cItemHandler
+{
+public:
+ cItemSaplingHandler(int a_ItemID)
+ : cItemHandler(a_ItemID)
+ {
+
+ }
+
+ virtual char GetBlockMeta(char a_ItemMeta)
+ {
+ //Only the first 2 bits are important
+ return a_ItemMeta & 3;
+ }
+}; \ No newline at end of file