7 #include "../BlockEntities/HopperEntity.h"
9 #include "../BlockEntities/DropperEntity.h"
17 Super(wtHopper,
"Hopper")
std::vector< cSlotArea * > cSlotAreas
cItemGrid & GetContents(void)
Returns the ItemGrid used for storing the contents.
cHopperWindow(cHopperEntity *a_Hopper)
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...
Handles the main inventory of each player, excluding the armor and hotbar.
Handles the hotbar of each player.
Handles any slot area that is representing a cItemGrid; same items for all the players.
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...