8 #include "../Entities/Player.h"
9 #include "../ClientHandle.h"
10 #include "../Blocks/BlockBed.h"
17 Super(a_BlockType, a_BlockMeta, a_Pos, a_World),
39 auto & src =
static_cast<const cBedEntity &
>(a_Src);
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
unsigned char BLOCKTYPE
The datatype used by blockdata.
void SetColor(short a_Color)
Set the color of the bed.
virtual cItems ConvertToPickups() const override
Returns the contents of this block entity that it would drop if broken.
virtual void CopyFrom(const cBlockEntity &a_Src) override
Copies all properties of a_Src into this entity, except for its m_World and location.
virtual void SendTo(cClientHandle &a_Client) override
Sends the packet defining the block entity to the client specified.
cBedEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World, short a_Color=E_META_WOOL_RED)
virtual void CopyFrom(const cBlockEntity &a_Src)
Copies all properties of a_Src into this entity, except for its m_World and location.
void SendUpdateBlockEntity(cBlockEntity &a_BlockEntity)
This class bridges a vector of cItem for safe access via Lua.