Files
MinecraftConsoles/Minecraft.World/EnchantmentContainer.cpp

23 lines
537 B
C++
Raw Permalink Normal View History

2026-03-01 12:16:08 +08:00
#include "stdafx.h"
#include "net.minecraft.world.inventory.h"
#include "EnchantmentContainer.h"
EnchantmentContainer::EnchantmentContainer(EnchantmentMenu *menu) : SimpleContainer(IDS_ENCHANT, L"", false, 1), m_menu( menu )
2026-03-01 12:16:08 +08:00
{
}
int EnchantmentContainer::getMaxStackSize() const
2026-03-01 12:16:08 +08:00
{
return 1;
}
void EnchantmentContainer::setChanged()
{
SimpleContainer::setChanged();
m_menu->slotsChanged(); // Remove this param as it's not needed
}
bool EnchantmentContainer::canPlaceItem(int slot, shared_ptr<ItemInstance> item)
{
return true;
2026-03-01 12:16:08 +08:00
}