summaryrefslogblamecommitdiffstats
path: root/source/items/ItemLeaves.h
blob: 03f0ce8f3c35327153d110142325a4530cfef863 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                               
                                                                  
          
                                                                                                                            

          
#pragma once

#include "Item.h"


class cItemLeavesHandler : public cItemHandler
{
public:
	cItemLeavesHandler(int a_ItemID)
		: cItemHandler(a_ItemID)
	{
	}
	virtual NIBBLETYPE GetBlockMeta(char a_ItemMeta) override
	{
		return a_ItemMeta | 0x4;	//0x4 bit set means this is a player-placed leaves block, not to be decayed
	}
};