/// <summary> /// </summary> /// <param name="container"> /// </param> /// <param name="placement"> /// </param> /// <returns> /// </returns> /// <exception cref="NullReferenceException"> /// </exception> public Item GetItemInContainer(int container, int placement) { try { IInventoryPage inventoryPage = this.Pages[container]; if (inventoryPage.ValidSlot(placement)) { if (inventoryPage[placement] != null) { return((Item)inventoryPage[placement]); } } throw new NullReferenceException("Container/Placement error: " + container + "/" + placement); } catch (Exception) { throw; } }