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