summaryrefslogblamecommitdiffstats
path: root/source/items/ItemSapling.h
blob: 23894b812dac85797be3be71ab07a1f5c0b422be (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                
                                                                        




                                                      
#pragma once

#include "Item.h"


class cItemSaplingHandler : public cItemHandler
{
public:
	cItemSaplingHandler(int a_ItemID)
		: cItemHandler(a_ItemID)
	{

	}

	virtual NIBBLETYPE GetBlockMeta(NIBBLETYPE a_ItemMeta) override
	{
		//Only the first 2 bits are important
		return a_ItemMeta & 3;
	}
};