15 cWindow(wtEnchantment, a_Title),
17 m_BlockPos(a_BlockPos)
std::vector< cSlotArea * > cSlotAreas
virtual void DistributeStack(cItem &a_ItemStack, int a_Slot, cPlayer &a_Player, cSlotArea *a_ClickedArea, bool a_ShouldApply) override
Called on shift-clicking to distribute the stack into other areas; Modifies a_ItemStack as it is dist...
virtual void SetProperty(size_t a_Property, short a_Value) override
Sends enchantment properties to the client.
std::array< short, 3 > m_PropertyValue
cEnchantingWindow(Vector3i a_BlockPos, const AString &a_Title)
short GetProperty(size_t a_Property)
Return the level requirement of the given enchantment slot.
cSlotAreaEnchanting * m_SlotArea
Handles the main inventory of each player, excluding the armor and hotbar.
Handles the hotbar of each player.
virtual void SetProperty(size_t a_Property, short a_Value)
Updates a numerical property associated with the window.
void DistributeStackToAreas(cItem &a_ItemStack, cPlayer &a_Player, cSlotAreas &a_AreasInOrder, bool a_ShouldApply, bool a_BackFill)
Called from DistributeStack() to distribute the stack into a_AreasInOrder; Modifies a_ItemStack as it...