16 m_BlockPos(a_BlockPos)
40 if (a_Player !=
nullptr)
std::vector< cSlotArea * > cSlotAreas
AString m_RepairedItemName
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...
void SetRepairedItemName(const AString &a_Name, cPlayer *a_Player)
Set the repaired item name.
AString GetRepairedItemName(void) const
Gets the repaired item name.
cAnvilWindow(Vector3i a_BlockPos)
cSlotAreaAnvil * m_AnvilSlotArea
Handles the main inventory of each player, excluding the armor and hotbar.
Handles the hotbar of each player.
void UpdateResult(cPlayer &a_Player)
Handles a click in the item slot.
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...