Files
MinecraftConsoles/Minecraft.World/TrapMenu.h
void_17 7074f35e4b shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
2026-03-02 15:58:20 +07:00

22 lines
661 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);
};