2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Slot.h"
|
|
|
|
|
|
2026-03-03 03:04:10 +08:00
|
|
|
class AnvilMenu;
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
class RepairResultSlot : public Slot
|
|
|
|
|
{
|
|
|
|
|
private:
|
2026-03-03 03:04:10 +08:00
|
|
|
AnvilMenu *m_menu;
|
2026-03-01 12:16:08 +08:00
|
|
|
int xt, yt, zt;
|
|
|
|
|
|
|
|
|
|
public:
|
2026-03-03 03:04:10 +08:00
|
|
|
RepairResultSlot(AnvilMenu *menu, int xt, int yt, int zt, shared_ptr<Container> container, int slot, int x, int y);
|
2026-03-01 12:16:08 +08:00
|
|
|
|
2026-03-02 17:37:16 +07:00
|
|
|
bool mayPlace(shared_ptr<ItemInstance> item);
|
|
|
|
|
bool mayPickup(shared_ptr<Player> player);
|
|
|
|
|
void onTake(shared_ptr<Player> player, shared_ptr<ItemInstance> carried);
|
|
|
|
|
virtual bool mayCombine(shared_ptr<ItemInstance> item); // 4J Added
|
2026-03-01 12:16:08 +08:00
|
|
|
};
|