summaryrefslogtreecommitdiffstats
path: root/source/Items/ItemSapling.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Items/ItemSapling.h')
-rw-r--r--source/Items/ItemSapling.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/source/Items/ItemSapling.h b/source/Items/ItemSapling.h
new file mode 100644
index 000000000..b0c223f29
--- /dev/null
+++ b/source/Items/ItemSapling.h
@@ -0,0 +1,28 @@
+
+#pragma once
+
+#include "ItemHandler.h"
+
+
+
+
+
+class cItemSaplingHandler : public cItemHandler
+{
+public:
+ cItemSaplingHandler(int a_ItemID)
+ : cItemHandler(a_ItemID)
+ {
+
+ }
+
+ virtual NIBBLETYPE GetBlockMeta(short a_ItemDamage) override
+ {
+ // Only the lowest 3 bits are important
+ return (NIBBLETYPE)(a_ItemDamage & 0x07);
+ }
+} ;
+
+
+
+