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

40 lines
831 B
C
Raw Normal View History

#pragma once
2014-06-29 06:36:38 -04:00
#include "BlockEntity.h"
#include "UI/WindowOwner.h"
// tolua_begin
class cEnderChestEntity :
2014-06-29 06:36:38 -04:00
public cBlockEntity,
public cBlockEntityWindowOwner
{
2017-06-15 09:32:33 -04:00
typedef cBlockEntity Super;
2016-02-05 16:45:45 -05:00
2014-07-17 16:50:58 -04:00
public:
// tolua_end
2016-02-05 16:45:45 -05:00
BLOCKENTITY_PROTODEF(cEnderChestEntity)
2016-02-05 16:45:45 -05:00
2017-06-15 09:32:33 -04:00
cEnderChestEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_World);
virtual ~cEnderChestEntity() override;
// cBlockEntity overrides:
virtual bool UsedBy(cPlayer * a_Player) override;
virtual void SendTo(cClientHandle & a_Client) override;
2014-06-29 06:36:38 -04:00
static void LoadFromJson(const Json::Value & a_Value, cItemGrid & a_Grid);
static void SaveToJson(Json::Value & a_Value, const cItemGrid & a_Grid);
2016-02-05 16:45:45 -05:00
2014-06-29 06:36:38 -04:00
/** Opens a new enderchest window for this enderchest */
void OpenNewWindow(void);
} ; // tolua_export