the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "net.minecraft.world.inventory.h"
3#include "EnchantmentContainer.h"
4
5EnchantmentContainer::EnchantmentContainer(EnchantmentMenu *menu) : SimpleContainer(IDS_ENCHANT, L"", false, 1), m_menu( menu )
6{
7}
8
9int EnchantmentContainer::getMaxStackSize() const
10{
11 return 1;
12}
13
14void EnchantmentContainer::setChanged()
15{
16 SimpleContainer::setChanged();
17 m_menu->slotsChanged(); // Remove this param as it's not needed
18}
19
20bool EnchantmentContainer::canPlaceItem(int slot, shared_ptr<ItemInstance> item)
21{
22 return true;
23}