5 #include "../UI/WindowOwner.h"
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
unsigned char BLOCKTYPE
The datatype used by blockdata.
cBlockEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World)
cEnderChestEntity(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, Vector3i a_Pos, cWorld *a_World)
virtual bool UsedBy(cPlayer *a_Player) override
Called when a player uses this entity; should open the UI window.
virtual void SendTo(cClientHandle &a_Client) override
Sends the packet defining the block entity to the client specified.
static void LoadFromJson(const Json::Value &a_Value, cItemGrid &a_Grid)
void OpenNewWindow(void)
Opens a new enderchest window for this enderchest.
static void SaveToJson(Json::Value &a_Value, const cItemGrid &a_Grid)
virtual void OnRemoveFromWorld() override
Called when the block entity object is removed from a world.
Window owner that is associated with a block entity (chest, furnace, ...)