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