Files
cuberite-2a/src/BlockEntities/EnderChestEntity.h
T

40 lines
801 B
C++
Raw Normal View History

2013-12-07 00:18:58 +00:00
#pragma once
2014-06-29 11:36:38 +01:00
#include "BlockEntity.h"
#include "UI/WindowOwner.h"
2013-12-07 00:18:58 +00:00
2013-12-16 22:02:28 +01:00
// tolua_begin
class cEnderChestEntity :
2014-06-29 11:36:38 +01:00
public cBlockEntity,
public cBlockEntityWindowOwner
2013-12-07 00:18:58 +00:00
{
2014-06-29 11:36:38 +01:00
typedef cBlockEntity super;
2013-12-07 00:18:58 +00:00
2014-07-17 22:50:58 +02:00
public:
2013-12-07 00:18:58 +00:00
// tolua_end
BLOCKENTITY_PROTODEF(cEnderChestEntity);
2014-07-17 22:50:58 +02:00
cEnderChestEntity(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World);
2013-12-07 00:18:58 +00:00
virtual ~cEnderChestEntity();
// cBlockEntity overrides:
virtual void UsedBy(cPlayer * a_Player) override;
2014-06-29 11:36:38 +01:00
virtual void SendTo(cClientHandle & a_Client) override { UNUSED(a_Client); }
static void LoadFromJson(const Json::Value & a_Value, cItemGrid & a_Grid);
static void SaveToJson(Json::Value & a_Value, const cItemGrid & a_Grid);
2013-12-07 00:18:58 +00:00
2014-06-29 11:36:38 +01:00
/** Opens a new enderchest window for this enderchest */
2013-12-07 00:18:58 +00:00
void OpenNewWindow(void);
} ; // tolua_export