51 static bool IsFlower(
short m_ItemType,
short m_ItemData);
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
unsigned char BLOCKTYPE
The datatype used by blockdata.
cBlockEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World)
virtual void SendTo(cClientHandle &a_Client) override
Sends the packet defining the block entity to the client specified.
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.
void SetItem(const cItem &a_Item)
Set the item in the flower pot.
virtual void CopyFrom(const cBlockEntity &a_Src) override
Copies all properties of a_Src into this entity, except for its m_World and location.
cFlowerPotEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World)
Creates a new flowerpot entity at the specified block coords.
static bool IsFlower(short m_ItemType, short m_ItemData)
cItem GetItem(void) const
Get the item in the flower pot.
virtual cItems ConvertToPickups() const override
Returns the contents of this block entity that it would drop if broken.
bool IsEmpty(void) const
Returns true if the item represents an empty stack - either the type is invalid, or count is zero.
This class bridges a vector of cItem for safe access via Lua.