4jcraft/Minecraft.World/Containers/HopperMenu.h
Tropical f25cd66f4d TU19: merge Minecraft.World/Containers
keeping virtual destructors where possible
2026-03-21 15:18:52 -05:00

25 lines
858 B
C++

#pragma once
#include "AbstractContainerMenu.h"
class HopperMenu : public AbstractContainerMenu {
private:
std::shared_ptr<Container> hopper;
public:
static const int CONTENTS_SLOT_START = 0;
static const int INV_SLOT_START = CONTENTS_SLOT_START + 5;
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;
public:
HopperMenu(std::shared_ptr<Container> inventory,
std::shared_ptr<Container> hopper);
bool stillValid(std::shared_ptr<Player> player);
std::shared_ptr<ItemInstance> quickMoveStack(std::shared_ptr<Player> player,
int slotIndex);
void removed(std::shared_ptr<Player> player);
std::shared_ptr<Container> getContainer();
};