2012-07-29 12:07:22 +00:00
|
|
|
|
2012-07-15 20:36:34 +00:00
|
|
|
#pragma once
|
|
|
|
|
2012-09-23 22:09:57 +00:00
|
|
|
#include "ItemHandler.h"
|
|
|
|
#include "../World.h"
|
2012-07-15 20:36:34 +00:00
|
|
|
|
2012-07-29 12:07:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cItemSugarcaneHandler :
|
|
|
|
public cItemHandler
|
2012-07-15 20:36:34 +00:00
|
|
|
{
|
|
|
|
public:
|
2012-10-18 19:41:29 +00:00
|
|
|
cItemSugarcaneHandler(int a_ItemType)
|
|
|
|
: cItemHandler(a_ItemType)
|
2012-07-15 20:36:34 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-07-16 19:20:37 +00:00
|
|
|
virtual bool IsPlaceable() override
|
2012-07-15 20:36:34 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2012-07-16 19:20:37 +00:00
|
|
|
virtual BLOCKTYPE GetBlockType() override
|
2012-07-15 20:36:34 +00:00
|
|
|
{
|
|
|
|
return E_BLOCK_SUGARCANE;
|
|
|
|
}
|
|
|
|
|
2012-07-29 12:07:22 +00:00
|
|
|
virtual NIBBLETYPE GetBlockMeta(short a_ItemDamage) override
|
2012-07-15 20:36:34 +00:00
|
|
|
{
|
|
|
|
return 0; //Not grown yet
|
|
|
|
}
|
2012-07-29 12:07:22 +00:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|