blob: 03f0ce8f3c35327153d110142325a4530cfef863 (
plain) (
tree)
|
|
#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
}
};
|