2012-07-15 13:36:34 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Item.h"
|
|
|
|
#include "../cWorld.h"
|
|
|
|
|
|
|
|
class cItemSugarcaneHandler : public cItemHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cItemSugarcaneHandler(int a_ItemID)
|
|
|
|
: cItemHandler(a_ItemID)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-07-16 12:20:37 -07:00
|
|
|
virtual bool IsPlaceable() override
|
2012-07-15 13:36:34 -07:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2012-07-16 12:20:37 -07:00
|
|
|
virtual BLOCKTYPE GetBlockType() override
|
2012-07-15 13:36:34 -07:00
|
|
|
{
|
|
|
|
return E_BLOCK_SUGARCANE;
|
|
|
|
}
|
|
|
|
|
2012-07-16 12:20:37 -07:00
|
|
|
virtual NIBBLETYPE GetBlockMeta(NIBBLETYPE a_ItemMeta) override
|
2012-07-15 13:36:34 -07:00
|
|
|
{
|
|
|
|
return 0; //Not grown yet
|
|
|
|
}
|
|
|
|
};
|