16 cWindow(wtChest,
"Ender Chest"),
17 m_World(a_EnderChest->GetWorld()),
18 m_BlockPos(a_EnderChest->GetPos())
26 "block.enderchest.open",
47 "block.enderchest.close",
std::vector< cSlotArea * > cSlotAreas
virtual ~cEnderChestWindow() override
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...
cEnderChestWindow(cEnderChestEntity *a_EnderChest)
Handles the main inventory of each player, excluding the armor and hotbar.
Handles the hotbar of each player.
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...
virtual void BroadcastBlockAction(Vector3i a_BlockPos, Byte a_Byte1, Byte a_Byte2, BLOCKTYPE a_BlockType, const cClientHandle *a_Exclude=nullptr) override
virtual void BroadcastSoundEffect(const AString &a_SoundName, Vector3d a_Position, float a_Volume, float a_Pitch, const cClientHandle *a_Exclude=nullptr) override