|
Cuberite
A lightweight, fast and extensible game server for Minecraft
|
NIBBLETYPE m_BlockMeta
The block meta representing this particular instance in the world Mainly used for directional entitie...
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.
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
virtual bool UsedBy(cPlayer *a_Player) override
Called when a player uses this entity; should open the UI window.
This class bridges a vector of cItem for safe access via Lua.
void SetColor(short a_Color)
Set the color of the bed.
unsigned char BLOCKTYPE
The datatype used by blockdata.
bool IsPillowBlock(void)
Returns true if this is the pillow block, it has then the meta 8.
virtual void CopyFrom(const cBlockEntity &a_Src) override
Copies all properties of a_Src into this entity, except for its m_World and location.
cBedEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World, short a_Color=E_META_WOOL_RED)
short GetColor(void) const
Returns the color of the bed.
virtual cItems ConvertToPickups() const override
Returns the contents of this block entity that it would drop if broken.