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

55 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-02-17 23:00:03 +00:00
2020-04-13 18:38:06 +02:00
using Super = cHangingEntity;
2014-02-17 23:00:03 +00:00
public: // tolua_export
CLASS_PROTODEF(cItemFrame)
2014-02-17 23:00:03 +00:00
cItemFrame(eBlockFace a_BlockFace, Vector3d a_Pos);
2014-02-17 23:00:03 +00:00
// tolua_begin
2014-03-15 02:45:25 +01:00
/** Returns the item in the frame */
2015-03-22 19:46:08 +01:00
const cItem & GetItem(void) const { return m_Item; }
2014-03-15 02:45:25 +01:00
/** Set the item in the frame */
void SetItem(cItem & a_Item) { m_Item = a_Item; }
2014-03-15 02:45:25 +01:00
/** Returns the rotation from the item in the frame */
Byte GetItemRotation(void) const { return m_ItemRotation; }
2014-03-15 02:45:25 +01:00
/** Set the rotation from the item in the frame */
2014-10-21 22:32:17 +02:00
void SetItemRotation(Byte a_ItemRotation) { m_ItemRotation = a_ItemRotation; }
// tolua_end
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;
2015-03-13 23:05:06 +00:00
virtual void SpawnOn(cClientHandle & a_ClientHandle) override;
2014-02-17 23:00:03 +00:00
cItem m_Item;
Byte m_ItemRotation;
2014-02-17 23:00:03 +00:00
}; // tolua_export