mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-23 23:33:36 +00:00
24 lines
708 B
C++
24 lines
708 B
C++
#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);
|
|
}; |