12 #include "../Defines.h"
64 const AString & a_OwnerTexture,
const AString & a_OwnerTextureSignature
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)
AString m_OwnerTextureSignature
void SetRotation(eMobHeadRotation a_Rotation)
Set the rotation of the mob head.
eMobHeadRotation m_Rotation
cMobHeadEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World)
Creates a new mob head entity at the specified block coords.
eMobHeadRotation GetRotation(void) const
Returns the rotation of the mob head.
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 bool UsedBy(cPlayer *a_Player) override
Called when a player uses this entity; should open the UI window.
AString GetOwnerTexture(void) const
Returns the texture of the mob head.
void SetOwner(const cPlayer &a_Owner)
Set the player for mob heads with player type.
void SetType(const eMobHeadType &a_SkullType)
Set the type of the mob head.
virtual void SendTo(cClientHandle &a_Client) override
Sends the packet defining the block entity to the client specified.
AString GetOwnerName(void) const
Returns the player name of the mob head.
AString GetOwnerTextureSignature(void) const
Returns the texture signature of the mob head.
eMobHeadType GetType(void) const
Returns the type of the mob head.
cUUID GetOwnerUUID(void) const
Returns the player UUID of the mob head.
This class bridges a vector of cItem for safe access via Lua.