Files
MinecraftConsoles/Minecraft.World/RepairResultSlot.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

20 lines
533 B
C++

#pragma once
#include "Slot.h"
class RepairMenu;
class RepairResultSlot : public Slot
{
private:
RepairMenu *m_menu;
int xt, yt, zt;
public:
RepairResultSlot(RepairMenu *menu, int xt, int yt, int zt, std::shared_ptr<Container> container, int slot, int x, int y);
bool mayPlace(std::shared_ptr<ItemInstance> item);
bool mayPickup(std::shared_ptr<Player> player);
void onTake(std::shared_ptr<Player> player, std::shared_ptr<ItemInstance> carried);
virtual bool mayCombine(std::shared_ptr<ItemInstance> item); // 4J Added
};