49 virtual void Destroy(
void)
override;
54 static bool IsFlower(
short m_ItemType,
short m_ItemData);
virtual void CopyFrom(const cBlockEntity &a_Src) override
Copies all properties of a_Src into this entity, except for its m_World and location.
unsigned char BLOCKTYPE
The datatype used by blockdata.
virtual void Destroy(void) override
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
bool IsItemInPot(void)
Is a flower in the pot?
virtual bool UsedBy(cPlayer *a_Player) override
Called when a player uses this entity; should open the UI window.
virtual void SendTo(cClientHandle &a_Client) override
Sends the packet defining the block entity to the client specified.
cItem GetItem(void) const
Get the item in the flower pot.
#define BLOCKENTITY_PROTODEF(classname)
Place this macro in the declaration of each cBlockEntity descendant.
cBlockEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World)
void SetItem(const cItem &a_Item)
Set the item in the flower pot.
static bool IsFlower(short m_ItemType, short m_ItemData)