blob: 6e5cc5170d9b2f2b3be53930d6682e945abe93b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include "AbstractContainerMenu.h"
class DispenserTileEntity;
class TrapMenu : public AbstractContainerMenu
{
private:
static const int INV_SLOT_START = 9;
static const int INV_SLOT_END = INV_SLOT_START + 9 * 3;
static const int USE_ROW_SLOT_START = INV_SLOT_END;
static const int USE_ROW_SLOT_END = USE_ROW_SLOT_START + 9;
private:
std::shared_ptr<DispenserTileEntity> trap;
public:
TrapMenu(std::shared_ptr<Container> inventory, std::shared_ptr<DispenserTileEntity> trap);
virtual bool stillValid(std::shared_ptr<Player> player);
virtual std::shared_ptr<ItemInstance> quickMoveStack(std::shared_ptr<Player> player, int slotIndex);
};
|