the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 39 lines 1.2 kB view raw
1#pragma once 2 3#include "AbstractContainerMenu.h" 4 5class FurnaceTileEntity; 6 7class FurnaceMenu : public AbstractContainerMenu 8{ 9 // 4J Stu Made these public for UI menus, perhaps should make friend class? 10public: 11 static const int INGREDIENT_SLOT = 0; 12 static const int FUEL_SLOT = 1; 13 static const int RESULT_SLOT = 2; 14 static const int INV_SLOT_START = FurnaceMenu::RESULT_SLOT + 1; 15 static const int INV_SLOT_END = FurnaceMenu::INV_SLOT_START + 9 * 3; 16 static const int USE_ROW_SLOT_START = FurnaceMenu::INV_SLOT_END; 17 static const int USE_ROW_SLOT_END = FurnaceMenu::USE_ROW_SLOT_START + 9; 18 19private: 20 shared_ptr<FurnaceTileEntity> furnace; 21 22public: 23 FurnaceMenu(shared_ptr<Inventory> inventory, shared_ptr<FurnaceTileEntity> furnace); 24 25private: 26 int tc; 27 int lt; 28 int ld; 29 30public: 31 virtual void addSlotListener(ContainerListener *listener); 32 virtual void broadcastChanges(); 33 virtual void setData(int id, int value); 34 virtual bool stillValid(shared_ptr<Player> player); 35 virtual shared_ptr<ItemInstance> quickMoveStack(shared_ptr<Player> player, int slotIndex); 36 37 // 4J Added looped param 38 virtual shared_ptr<ItemInstance> clicked(int slotIndex, int buttonNum, int clickType, shared_ptr<Player> player, bool looped = false); 39};