|
Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Go to the documentation of this file.
12 #include "../Defines.h"
64 const AString & a_OwnerTexture,
const AString & a_OwnerTextureSignature
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.
AString GetOwnerTextureSignature(void) const
Returns the texture signature of the mob head.
cBlockEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World)
eMobHeadRotation m_Rotation
AString GetOwnerName(void) const
Returns the player name of the mob head.
cUUID GetOwnerUUID(void) const
Returns the player UUID of the mob head.
virtual bool UsedBy(cPlayer *a_Player) override
Called when a player uses this entity; should open the UI window.
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
eMobHeadType GetType(void) const
Returns the type of the mob head.
AString GetOwnerTexture(void) const
Returns the texture of the mob head.
AString m_OwnerTextureSignature
cMobHeadEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World)
Creates a new mob head entity at the specified block coords.
virtual cItems ConvertToPickups() const override
Returns the contents of this block entity that it would drop if broken.
This class bridges a vector of cItem for safe access via Lua.
unsigned char BLOCKTYPE
The datatype used by blockdata.
void SetType(const eMobHeadType &a_SkullType)
Set the type of the mob head.
void SetRotation(eMobHeadRotation a_Rotation)
Set the rotation of the mob head.
void SetOwner(const cPlayer &a_Owner)
Set the player for mob heads with player type.
eMobHeadRotation GetRotation(void) const
Returns the rotation of the mob head.