Files
cuberite-2a/src/Entities/ItemFrame.h
T

49 lines
1.0 KiB
C++
Raw Normal View History

2014-02-17 23:00:03 +00:00
#pragma once
2014-03-15 02:45:25 +01:00
#include "HangingEntity.h"
2014-02-17 23:00:03 +00:00
// tolua_begin
class cItemFrame :
2014-03-15 02:45:25 +01:00
public cHangingEntity
2014-02-17 23:00:03 +00:00
{
// tolua_end
2014-03-15 02:45:25 +01:00
typedef cHangingEntity super;
2014-02-17 23:00:03 +00:00
public:
CLASS_PROTODEF(cItemFrame);
2014-02-18 21:33:33 +00:00
cItemFrame(eBlockFace a_BlockFace, double a_X, double a_Y, double a_Z);
2014-02-17 23:00:03 +00:00
2014-03-15 02:45:25 +01:00
/** Returns the item in the frame */
const cItem & GetItem(void) { return m_Item; } // tolua_export
/** Set the item in the frame */
void SetItem(cItem & a_Item) { m_Item = a_Item; }; // tolua_export
/** Returns the rotation from the item in the frame */
Byte GetRotation(void) const { return m_Rotation; } // tolua_export
/** Set the rotation from the item in the frame */
void SetRotation(Byte a_Rotation) { m_Rotation = a_Rotation; } // tolua_export
2014-02-17 23:00:03 +00:00
private:
virtual void OnRightClicked(cPlayer & a_Player) override;
2014-07-04 10:55:09 +01:00
virtual void KilledBy(TakeDamageInfo & a_TDI) override;
2014-02-17 23:00:03 +00:00
virtual void GetDrops(cItems & a_Items, cEntity * a_Killer) override;
cItem m_Item;
Byte m_Rotation;
}; // tolua_export