2013-12-07 00:18:58 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2014-06-29 10:36:38 +00:00
|
|
|
#include "BlockEntity.h"
|
2018-08-29 00:51:25 +00:00
|
|
|
#include "../UI/WindowOwner.h"
|
2013-12-07 00:18:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-12-16 21:02:28 +00:00
|
|
|
// tolua_begin
|
|
|
|
class cEnderChestEntity :
|
2014-06-29 10:36:38 +00:00
|
|
|
public cBlockEntity,
|
|
|
|
public cBlockEntityWindowOwner
|
2013-12-07 00:18:58 +00:00
|
|
|
{
|
|
|
|
// tolua_end
|
2016-02-05 21:45:45 +00:00
|
|
|
|
2020-04-13 16:38:06 +00:00
|
|
|
using Super = cBlockEntity;
|
2019-09-29 12:59:24 +00:00
|
|
|
|
|
|
|
public: // tolua_export
|
|
|
|
|
|
|
|
cEnderChestEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld * a_World);
|
2013-12-07 00:18:58 +00:00
|
|
|
|
|
|
|
// cBlockEntity overrides:
|
2021-01-02 13:50:34 +00:00
|
|
|
virtual void OnRemoveFromWorld() override;
|
2015-12-01 22:12:44 +00:00
|
|
|
virtual bool UsedBy(cPlayer * a_Player) override;
|
2017-05-21 09:48:33 +00:00
|
|
|
virtual void SendTo(cClientHandle & a_Client) override;
|
2014-06-29 10:36:38 +00: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 21:45:45 +00:00
|
|
|
|
2014-06-29 10:36:38 +00:00
|
|
|
/** Opens a new enderchest window for this enderchest */
|
2013-12-07 00:18:58 +00:00
|
|
|
void OpenNewWindow(void);
|
|
|
|
} ; // tolua_export
|