unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
unsigned char BLOCKTYPE
The datatype used by blockdata.
virtual bool UsedBy(cPlayer *a_Player) override
Called when a player uses this entity; should open the UI window.
void SetBaseColor(unsigned char a_Color)
virtual void SendTo(cClientHandle &a_Client) override
Sends the packet defining the block entity to the client specified.
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 GetBaseColor() const
cBannerEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World, unsigned char a_BaseColor=1, AString a_CustomName="")
virtual cItems ConvertToPickups() const override
Returns the contents of this block entity that it would drop if broken.
const AString & GetCustomName() const
void SetCustomName(const AString &a_CustomName)
unsigned char m_BaseColor
cBlockEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World)
This class bridges a vector of cItem for safe access via Lua.