the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3
4#include "ComplexItem.h"
5
6class MapItemSavedData;
7
8class MapItem : public ComplexItem
9{
10public:
11 static const int IMAGE_WIDTH = 128;
12 static const int IMAGE_HEIGHT = 128;
13
14public: // 4J Stu - Was protected in Java, but then we can't access it where we need it
15 MapItem(int id);
16
17 static shared_ptr<MapItemSavedData> getSavedData(short idNum, Level *level);
18 shared_ptr<MapItemSavedData> getSavedData(shared_ptr<ItemInstance> itemInstance, Level *level);
19 void update(Level *level, shared_ptr<Entity> player, shared_ptr<MapItemSavedData> data);
20 virtual void inventoryTick(shared_ptr<ItemInstance> itemInstance, Level *level, shared_ptr<Entity> owner, int slot, bool selected);
21 shared_ptr<Packet> getUpdatePacket(shared_ptr<ItemInstance> itemInstance, Level *level, shared_ptr<Player> player);
22 virtual void onCraftedBy(shared_ptr<ItemInstance> itemInstance, Level *level, shared_ptr<Player> player);
23};