summaryrefslogtreecommitdiffstats
path: root/source/items/ItemSapling.h
blob: 29c14abee927d20edc141d64b36ff4e2e112b420 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
	}
};