1
0
cuberite-2a/src/BlockEntities/EnderChestEntity.h

42 lines
936 B
C
Raw Normal View History

#pragma once
2014-06-29 10:36:38 +00:00
#include "BlockEntity.h"
#include "UI/WindowOwner.h"
#include "json/json.h"
// tolua_begin
class cEnderChestEntity :
2014-06-29 10:36:38 +00:00
public cBlockEntity,
public cBlockEntityWindowOwner
{
2014-06-29 10:36:38 +00:00
typedef cBlockEntity super;
2014-06-29 10:36:38 +00:00
public:
// tolua_end
2014-06-29 10:36:38 +00:00
cEnderChestEntity(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World);
virtual ~cEnderChestEntity();
static const char * GetClassStatic(void) { return "cEnderChestEntity"; }
// cBlockEntity overrides:
virtual void UsedBy(cPlayer * a_Player) override;
2014-06-29 10:36:38 +00:00
virtual void SaveToJson(Json::Value & a_Value) override { UNUSED(a_Value); }
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);
2014-06-29 10:36:38 +00:00
/** Opens a new enderchest window for this enderchest */
void OpenNewWindow(void);
} ; // tolua_export