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

19 lines
526 B
C++

#pragma once
// 4J Stu Added
// In EnchantmentMenu.java they create an anoymous class while creating the
// container. I have moved the content of that anonymous class to here
#include "SimpleContainer.h"
class EnchantmentMenu;
class EnchantmentContainer : public SimpleContainer {
private:
EnchantmentMenu* m_menu;
public:
EnchantmentContainer(EnchantmentMenu* menu);
virtual int getMaxStackSize();
virtual void setChanged();
virtual bool canPlaceItem(int slot, std::shared_ptr<ItemInstance> item);
};