mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftConsoles-141217.git
synced 2026-10-22 21:22:19 +01:00
Initial commit
This commit is contained in:
commit
2dfcaaa842
5375 files changed
+978475
No files matched your search
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include "AbstractContainerMenu.h"
|
||||
|
||||
class HopperMenu : public AbstractContainerMenu
|
||||
{
|
||||
private:
|
||||
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(shared_ptr<Container> inventory, shared_ptr<Container> hopper);
|
||||
|
||||
bool stillValid(shared_ptr<Player> player);
|
||||
shared_ptr<ItemInstance> quickMoveStack(shared_ptr<Player> player, int slotIndex);
|
||||
void removed(shared_ptr<Player> player);
|
||||
shared_ptr<Container> getContainer();
|
||||
};
|
||||
Reference in new issue
Block a user