diff options
Diffstat (limited to 'source/items/ItemSapling.h')
-rw-r--r-- | source/items/ItemSapling.h | 20 |
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 |