the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 24 lines 721 B view raw
1#pragma once 2 3#include "AbstractContainerMenu.h" 4 5class HopperMenu : public AbstractContainerMenu 6{ 7private: 8 shared_ptr<Container> hopper; 9 10public: 11 static const int CONTENTS_SLOT_START = 0; 12 static const int INV_SLOT_START = CONTENTS_SLOT_START + 5; 13 static const int INV_SLOT_END = INV_SLOT_START + 9 * 3; 14 static const int USE_ROW_SLOT_START = INV_SLOT_END; 15 static const int USE_ROW_SLOT_END = USE_ROW_SLOT_START + 9; 16 17public: 18 HopperMenu(shared_ptr<Container> inventory, shared_ptr<Container> hopper); 19 20 bool stillValid(shared_ptr<Player> player); 21 shared_ptr<ItemInstance> quickMoveStack(shared_ptr<Player> player, int slotIndex); 22 void removed(shared_ptr<Player> player); 23 shared_ptr<Container> getContainer(); 24};