eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc.
#define CLASS_PROTODEF(classname)
cHangingEntity(eEntityType a_EntityType, eBlockFace a_BlockFace, Vector3d a_Pos)
cItemFrame(eBlockFace a_BlockFace, Vector3d a_Pos)
virtual void SpawnOn(cClientHandle &a_ClientHandle) override
Descendants override this function to send a command to the specified client to spawn the entity on t...
void SetItem(cItem &a_Item)
Set the item in the frame.
virtual void GetDrops(cItems &a_Items, cEntity *a_Killer) override
Returns the list of drops for this pawn when it is killed.
Byte GetItemRotation(void) const
Returns the rotation from the item in the frame.
virtual bool DoTakeDamage(TakeDamageInfo &a_TDI) override
Makes this entity take damage specified in the a_TDI.
virtual void OnRightClicked(cPlayer &a_Player) override
Called when the specified player right-clicks this entity.
void SetItemRotation(Byte a_ItemRotation)
Set the rotation from the item in the frame.
const cItem & GetItem(void) const
Returns the item in the frame.
This class bridges a vector of cItem for safe access via Lua.